TransitionMonitor.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 TransitionMonitor() { this.reset(); } // TransitionMonitor.prototype.reset = function () { this.setFromMetaNodeModel(null); this.setToMetaNodeModel(null); }; // TransitionMonitor.prototype.setFromMetaNodeModel = function (metaNodeModel) { this.fromMetaNodeModel = metaNodeModel; }; TransitionMonitor.prototype.getFromMetaNodeModel = function () { return this.fromMetaNodeModel; }; // TransitionMonitor.prototype.setToMetaNodeModel = function (metaNodeModel) { this.toMetaNodeModel = metaNodeModel; }; TransitionMonitor.prototype.getToMetaNodeModel = function () { return this.toMetaNodeModel; }; // TransitionMonitor.prototype.isEnable = function () { return (this.fromMetaNodeModel && this.toMetaNodeModel); };