Workstep Suspended

Posted by Fernando.Ferreira on 28-Dec-2015 08:38

When an adapter get suspended, is it possible create a error condition? For get why the workstep is suspended, and send a e-mail with the condition thats generate the workstep suspended ?

 

 


Posted by Jawahar Surapaneni on 29-Dec-2015 05:02

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.
 
 
 

All Replies

Posted by Jawahar Surapaneni on 28-Dec-2015 11:19

Hi Fernando,
At the time of installation of Openegde Business Process Server, you will get a option to configure email address along with email server details in one of the installation screen. This configuration enables to trigger emails along with the exception trace when ever managed adapter step gets suspended. This works not only with adapter work steps, but also with the human work steps aswell.
In case, if user forgets to provide email address and server details at the time of installation, it can be configured by editing the emailer.ini and email related conf files in the <dlc>oebpm\server\conf directory path. Once this change is done, servers need to be restarted.

Regards,
Jawahar.

On Mon, Dec 28, 2015 at 8:09 pm, Fernando.Ferreira <bounce-FernandoFerreira@community.progress.com> wrote:

Update from Progress Community
Fernando.Ferreira

When an adapter get suspended, is it possible create a error condition? For get why the workstep is suspended, and send a e-mail with the condition thats generate the workstep suspended ?

 

 


View online

 

You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

Flag this post as spam/abuse.

Posted by Fernando.Ferreira on 28-Dec-2015 11:56

Hi Jawahar,

Thank you !! I I receveid the message with error now ! :-)

Look the message:

Caused by: java.sql.SQLDataException: [oebpm][SQLServer JDBC Driver][SQLServer]String or binary data would be truncated

Is it possible create a rule / Workstep, that get this error to send a user that is not OpenEdge BPM administrator  ?

Thanks,

Fernando

Posted by erdsouza on 28-Dec-2015 12:13

Hi Jawahar,
 
I guess Fernando meant something like error handling, something more like the scenario below:
 
Example: An error occurs during workflow (for instance, the database is down or the query has failed), the customer want to catch this error and receive this alert through an e-mail saying what was wrong…
 
 Best regards,
 
Eduardo
 

Posted by Jawahar Surapaneni on 29-Dec-2015 05:02

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.
 
 
 

This thread is closed