[Progress Communities] [Progress OpenEdge ABL] Forum Post: How to trap the event for a suspended WorkItem

  • Thread starter Thread starter Marius Fiere
  • Start date Start date
Status
Not open for further replies.
M

Marius Fiere

Guest
Dear all, I have the following rule file in operation: application InvoiceApproval_V5 group ifarules{ rule suspendifarule activated by EVT_1 of BizLogic::W_SUSPENDED{PROCESSTEMPLATENAME : "InvoiceApproval_V5"} then{ println("SUSPEND context.Exception::"+EVT_1.context.EXCEPTION); // Code to get the desired set of user to send email to. // Gather all information required to be sent in a mail. val exceptionTrace=EVT_1.context.EXCEPTION; // this variable carries the exception trace that would clarify the reason for the same, to the recipient. val PIID=EVT_1.context.PROCESSINSTANCEID; val wname=EVT_1.context.WORKSTEPNAME; val WIID=EVT_1.context.WORKSTEPID; val processTemplateName = EVT_1.context.PROCESSTEMPLATENAME; } rule activateifarule activated by EVT_1 of BizLogic::W_ACTIVATED{PROCESSTEMPLATENAME : "InvoiceApproval_V5"} then{ println("ACTIVATE context.Exception::"+EVT_1.context.EXCEPTION); // Code to get the desired set of user to send email to. // Gather all information required to be sent in a mail. val exceptionTrace=EVT_1.context.EXCEPTION; // this variable carries the exception trace that would clarify the reason for the same, to the recipient. val PIID=EVT_1.context.PROCESSINSTANCEID; val wname=EVT_1.context.WORKSTEPNAME; val WIID=EVT_1.context.WORKSTEPID; val processTemplateName = EVT_1.context.PROCESSTEMPLATENAME; } } whilst I do see each and every activation of a workstep resulting in a log line, I don't see one for when a task becomes suspended (and yes I have made sure some workstep always become suspended to track this). Any idea's on how to get this to work would be highly appreciated...

Continue reading...
 
Status
Not open for further replies.
Back
Top