StateMonitor.js
资源名称:WorkFlow.rar [点击查看]
上传用户:ahit0551
上传日期:2009-04-15
资源大小:2345k
文件大小:1k
源码类别:
xml/soap/webservice
开发平台:
Java
- /**
- * <p>Title: </p>
- * <p>Description: </p>
- * <p>Copyright: Copyright (c) xio.name 2006</p>
- * @author xio
- */ function StateMonitor() { this.base = Observable; this.base(); this.setState(StateMonitor.SELECT); } StateMonitor.prototype = new Observable(); StateMonitor.prototype.setState = function (state) { this.state = state; this.notifyObservers(StateMonitor.OPERATION_STATE_CHANGED); }; StateMonitor.prototype.getState = function (state) { return this.state; }; // StateMonitor.prototype.resetState = function (state) { this.notifyObservers([StateMonitor.OPERATION_STATE_RESET, state]); }; // StateMonitor.OPERATION_STATE_CHANGED = "OPERATION_STATE_CHANGED"; StateMonitor.OPERATION_STATE_RESET = "OPERATION_STATE_RESET"; // StateMonitor.SELECT = 1; StateMonitor.START_NODE = 3; StateMonitor.END_NODE = 5; StateMonitor.FORK_NODE = 7; StateMonitor.JOIN_NODE = 9; StateMonitor.NODE = 11; StateMonitor.TRANSITION = 13;