pub.monitor.process.modelControl:changeModelEnabled
Enables or disables the specified webMethods-executed process model.
Input Parameters
enableModelID | String Complete model ID of a process model. You can retrieve model IDs by invoking the pub.monitor.process.model:getModelNames service and using the value returned in the modelNames/PROCESSKEY output parameter. Note: | Whether Monitor treats enable ModelID as case-sensitive depends on how the underlying database (for example, Oracle, DB2, or SQL server) handles the queries that Monitor issues to obtain data. |
|
enabledStatus | 0 Default. Disabled model. 1 Enabled model. |
Output Parameters
message | String Success or error message, as appropriate. |
Usage Notes
![*](bullet.gif)
If you disable a process model that is invoked by another process model, when a process instance based on the parent model is executed, it will fail at the step that attempts to start a process instance for the disabled process model.
![*](bullet.gif)
If there are multiple versions of a process model, this service acts on the latest version.