VarbanVarbanov

Starting/stopping ACE module programatically

Discussion created by VarbanVarbanov on Apr 18, 2013
Latest reply on Apr 22, 2013 by VarbanVarbanov

Hi, I'm trying to stop ACEModule exe, module or context using :  PIACEMDBFunctions.ChangePIACEEMCStatus(mdbObjectPath, (int)StatusCode.scOutOfService). It works!!!

But i could not tell the same for  starting:

 PIACEMDBFunctions.ChangePIACEEMCStatus(path, (int)StatusCode.scOn)  - sets the status at On, all shines green but no calculations are perfomed (I wait for an hour - nothing changes)

or

 PIACEMDBFunctions.ChangePIACEEMCStatus(path, (int)StatusCode.scStarting) - set the status for "Starting" and it seems to stay forever

What is the proper way to do this?
Can somebody explain how exactly this works I guess after setting the status ACE Schesuler checks it and starts/stops calculation?
Maybe it works with conjunction with something else like Modified or StatusSince properties which i need to set?

Thank you for your help!! 

Outcomes