on 10-30-2007 2:12 PM
Hi.
I have a question about generating errors in a BPM.
The scenario is like this:
After some process I have a switch. In case of an error, the switch branch to a control step that throws an exception. A control step afterwards cancels the process.
Everything works like it should, but in the monitor, every process step has a sucessfull flag. I would like the process to fail somehow, so the process step indicates an error.
We do not use the alert framework!
Anyone got an idea?
Regards...
Peter
Peter,
Are u using Cancel Process in Control Block? If yes then the BPM will not be errord out rather it will say success. Cancel Process is nothing but Logically Deleting the workflow, hence it will always shows success status.
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again
The switch step looks into a return structure from a proxy call (BAPIRET2).
If any line in the RETURN segment contains TYPE=E an error has occured in the backend. So the switch looks for this, and throws an exception, if this is the case!
The point is, that everything works as it should, but Im having some trouble showing it to the system supporters
Regards...
Peter
Peter,
I got your flow. You need to do the below steps in order to achieve your scenario.
--Place a block. In Block Properties enter Exception name[ Anything as ur wish]
--Place the Switch step inside the Block.
-- As per your above logic check for TYPE =E and place the Control block in the corresponding brach.
-- Control Block choose Action as "Throw Exception" and Exception as defined in Step 1.
-- Remember don't insert any Exception branch and catch the exception, then you won't get any errorrs. If you want the BPM to be errord out then follow the steps mentioned above.
If you have any doubts, please revert back.
raj.
Hi again.
I actually tried this.
But for some reason the process just ends up with "Outbound status": Message scheduled on outbound side.
The PE has a green flag. The error on queue level is: Permanent error in BPE inbound processing.
If I go with this approach, the failed message will block the queue, until it is removed.
And what is worse, the process status is still succesfull. No Errors shown!
Regards...
Peter
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.