Question
· Jul 30, 2019

Disable ENSEMBLE operation . Throw error

Hello Community,

How do i disable an operation explicitly based on a value in a variable?

I set the ReplyCodeAction to E=D.

In the Operation Code i am throwing an explicit ERROR

THROW ##class(%Exception.General).%New("Shutting Down Operation",999,,"My own special exception")

But my operation still remains up.

Any suggestions please will be appreciated.

Thanks,

Jimmy Christian.

Discussion (6)0
Log in or sign up to continue

You can THROW or set any error while Quitting,

Both should disable, if E=D.

One quick question - have you restarted you operation after putting this Logic.. The code changes will only be effective only after operation is linked to new JOB.

You can also, try debugging your code attaching corresponding job of operation in studio.. there is no reason this should not work.