cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error description in exception branch

former_member192892
Active Contributor
0 Kudos

hi guys,

I'm working on a complicated BPM scenario. I have included an exception branch for the process. My goal is to ultimately insert the process comments in a database table.

Now whenever system error occurs, I would like to get the exact system error that occured and store it in the comments field in my database table.

My doubt is, how can i get the error details in the exception branch?? Is there some method to achieve this??

Thanks guys

Varun

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

The requirement was to send the exception that occured to a target (say file).

insert a block for the exception

You cannot place an exception step without a block right... thats what i mean by the above statement.

Now, just after the exception has taken place, if i put a transformation step, and a send step, you will be taking care of sending the exception message to the target.

how to build the exception message ? It should map from what?

You could build a data type for the exception.

In the mapping, you could map it to constants. For ex:

if you build your DT as

<excep>

<code/>

<desc/>

</excep>

You could map the description to a constant string "timeout".

After this, the send step will send the message to the file, through the abstract interface that you create.

former_member192892
Active Contributor
0 Kudos

Hi Gabriel,

I don't have any problem with handling the exception, But as of now, the message I'm transferring is something like "A System error has occured. Contact Administrator".

But here, I'm not pssing the error description. For e.g, if i have entered a wrong password in my receiver rfc adapter, I'd like to get the error message from the error trace and add it to my error message...

former_member192892
Active Contributor
0 Kudos

Any help???

Answers (0)