Forum Post: Re: Workstep Suspended

  • Thread starter Thread starter Jawahar Surapaneni
  • Start date Start date
Status
Not open for further replies.
J

Jawahar Surapaneni

Guest
Hi Fernando and Eduardo, As per the requirement you have mentioned, a non admin user can get the details of the suspended workstep by configuring the bizpulse rules. Point to be noted here is, there is no readymade rule available to achieve this. Instead user need to write custom code while creating the rules. In order to achieve this, from the Under Create Rules section, expand the General node and create a New Rule. Once the rule creation is completed, in the project explorer, under rules folder, open the .bps file and write the custom code in order to capture the exception trace. Sample code for this would look like this application MyRulePrj module NewRule_Exception import MyRulePrj::MyRulePrj_rules; rule MessageRule activated by EVT_1 of BizLogic::W_SUSPENDED{PROCESSTEMPLATENAME : "MyRulePrj"} { println("********************"+ EVT_1.context.EXCEPTION); } Similarly, if you want to trigger an email then sample syntax would look like this sendMail("receiver@progress.com","sender@progress.com","Subject"); There is a Knowledgebase article readily available, which lists out steps that are involved to achieve the functionality which you have requested. Also, some pseudo code is written in this article, which might help you. Clickhere to get the details. Regards, Jawahar.

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