How to set a srvroutine in a "Failed" state programmatically
Posted: Fri Oct 21, 2016 5:37 pm
Hi all!
is it possible to set a srvroutine in a "Failed" state programmatically?
Thanks
For example:
is it possible to set a srvroutine in a "Failed" state programmatically?
Thanks
For example:
Code: Select all
Srvroutine Name(my_srvroutine)
if cond(some_condition)
* Set "Failed" state
Return
endif
Endroutine
Mthroutine Name(my_mthroutine)
Define_com Class(#MySrvModule.my_srvroutine) Name(#my_srvroutine)
my_srvroutine.Execute
Evtroutine Handling(my_srvroutine.Completed)
Endroutine
Evtroutine Handling(my_srvroutine.Failed)
Endroutine
Endroutine