cancel
Showing results for 
Search instead for 
Did you mean: 

Exception branch to error the BPM process after timeout

former_member187447
Participant
0 Kudos

Hi

I have a BPM scenario which has correlation setup for an async interface for request response. Now my question is can i setup the Exception handling in BPM to error the message and also throw an alert once the correlation times out? If so, how? Currently i am trying out with a deadline branch where i have setup the timeout time eg 1 min. and am putting an exception control block within that and using a separate exception branch to handle it. But i see that the exception is not even being raised and so the BPM is failing gracefully with checkered flag. Please suggest.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can start to verify your process by comparing it to one of the patterns in SAP BASIS software component in ESR, namespace http://sap.com/xi/XI/System/Patterns, there  is a process called BpmPatternCollectTime. They also use deadline branch.

former_member187447
Participant
0 Kudos

I tried that, but its not erroring out with red flag.

Former Member
0 Kudos

Are you sure the exception isn't actually triggered? Did you check the technical workflow log?

It sounds like your process won't error with red flag since you handle the exception, and that is good since if the process stops with red flag, you may keep other processes instances from being processed since the queue is stopped. I don't recommend that approach.

I recommend implementing the Example: Deadline Monitoring for Receipt of a Response Message. Generate an alert on exception as recommended by SAP.

former_member187447
Participant
0 Kudos

Martin, It worked, I implemented the "Alert Following Missed Deadline". Thank You.

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi,

two parallel branches (fork with one success branch), one with a wait step and behind that a  jump (control step) into exception branch should work.

/Udo

former_member187447
Participant
0 Kudos

HI Udo,

Can you please elaborate a bit, i have currently used a block and am having the success branch and inserted one deadline branch and exception branch. Are you suggesting to use a Fork within the block and have one success branch and the other an exception branch with a control step to handle exception followed by a wait step?

udo_martens
Active Contributor
0 Kudos

Hi,

Can you please elaborate a bit

A Block defining an exception, having an exception branch for that

Inside the block a fork, 1 neccessary branch (of 2 total)

1. Branch: Your normal processing. Waiting for correlation

2. Branch: First a wait step. Second a control step, jumping into exception branch

/Udo