Skip to Content

During process modeling we create automated activity and assign a service interface to it.When the process is executed at runtime, the respective Web service is called and the automated activity is executed.Automated activities can fail for several reasons:Configuration Error,Web service provider is down,Network error etc.If an automated activity failed, we can handle the error in the following way:

  • Rectify the configuration.
  • Resume or Recover the process.

There is a slight difference between Resume & Recover.Though both are used to restart suspended BPM process but in case of Recover some manual tasks are needed to perform where Resume is fully automatic.

To understand the steps of Resume & Recover we can take following example.

We created one simple BPM process contains three tasks “Select Material”, “Send Email”& “Display Material”.Where “Select Material” & “Display Material” tasks are of type Human Activity & “Send Email” is of type Automated Activity.

Using Suspend-Resume Option:-

1.Log on to the SAP Netweaver Administrator application.Choose -> Operations -> Processes and Tasks ->Manage Process->Error And Failed Processes.XXX Process has failed.

Image1.jpg

2. In Process Flow We see the exact error is coming from webservice execution for the Automated Activity “Send Email”

Image2.jpg

3.in Process Manage Process we select Actions->Suspend to suspend the process and to work on the error.

Image3.jpg

4.After fixing the error we select Resume to complete the Suspended BPM Process.

Image5.jpg

5. The BPM Process XXX restarted successfully & received Automatic Email by executing the webservice of “Send Email” Automated Activity.

Image6.jpg

Using Suspend-Recovery Option:-

1.Log on to the SAP Netweaver Administrator application.Choose -> Operations -> Processes and Tasks ->Manage Processes->Error And Failed Processes.XXX Process has failed.

Image7.jpg

2. In Process Manage Process we can select Actions->Suspend to suspend the process and to work on the error.     

Image8.jpg

3. After fixing the error we can select Recover to complete the Suspended BPM Process.

Image9.jpg

4. After Recover the suspended BPM Process,the Automated Activity (“Send Email”)is active and ready to execute.

Image10.jpg

5 .We have to execute the Web Service manually providing valid input for the Automated activity (“Send Email”) from Web Service navigator.

Image11.jpg

6.We can able to process further tasks automatically like the next task is coming in Ready Status.

Image12.jpg

Thanks & Regards,

Patralekha Sur

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

    1. Patralekha Sur Post author

      Thanks.

      These mails will move to Outlook.

      In BPM inside Automated Activity I have tried both RFC & EJB Webservice execution options to send EMail to outlook as my project requirement.

      I will try to list down the steps.

      (0) 
    2. Siddhant Bhatankar

      The emails sent through BPM are sent agains either the User ID or external users(normal email addresses).

      In case the emails are sent based on user-id’s, the email will be sent to the email address against the user id which is maintained in the UME. whether the email is configured in outlook is a different thing.

      (0) 
  1. Jun Wu

    I have big doubt

    after you execute the ws, how the system would know it should move forward for that particular process instance

    (0) 
  2. Piyas Kumar Das

    Hi Patralekha Sur,


    The document should have been a blog as the scenario you have done does not hold good for all cases.


    Yet it is a good document capturing minute details of the trouble shooting techniques.

    Cheers

    Piyas

    (0) 

Leave a Reply