cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Exception Handling control step

Former Member
0 Kudos

Hi,

Does anybody have any idea, whats the variable we need to pass in the control step of exception handling in BPM? and how to map the error message back to the RFC Response.

I had Transformation step, in that mapping is also there.

Is there any ideas??.

Thanks,

Raj.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

why do you need control step??

just put the transformation step in the mapping

in the exception branch and then if the exception will occur the mapping will be triggered

Regards,

michal

Answers (2)

Answers (2)

Former Member
0 Kudos

I think Raj means that

when the exception raises, catch the exception

and get the error content(such as exception content, what fails something like that),

then map the error content to RFC Response

It it right?

Former Member
0 Kudos

Smita and Lawrence,

Thanks for the input. Lawrence is right, I want to catch an exception, When I looked in my Work Flow Diagram, it shows that the exception is not catchable.

Thanks,

Raj.

Former Member
0 Kudos

Hi,

<i>it shows that the exception is not catchable.</i>

It means that you have not specified the proper exception and exception handler in the BPM.

what kind of exception is it? check it in the workflow log, and try inserting an exception handler for that, in the BPM.

Regards,

Smitha.

Former Member
0 Kudos

One more thing,

<i>get the error content(such as exception content, what fails something like that)</i>

We try and handle an exception, so that, the BPM process does not stop abruptly.

In case you want to send this exception to the file, just insert a block for the exception and insert a send step. In the interface determination, make the necessary changes.

Regards,

Smitha.

Former Member
0 Kudos

One more thing,

<i>get the error content(such as exception content, what fails something like that)</i>

We try and handle an exception, so that, the BPM process does not stop abruptly.

In case you want to send this exception to the file, just insert a block for the exception and insert a send step. In the interface determination, make the necessary changes.

Regards,

Smitha.

Former Member
0 Kudos

hi Smitha Rao

i know that the block can insert the exception branch

and we can throw the exception in <b>Send</b>, <b>Transformation</b>, and <b>control step</b>

you said

<i>insert a block for the exception and insert a send step</i>

i just wonder in the <b>send</b> step i should send what message?

As we know, all the message types are built by ourself,

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

Or is there system exception message we can use directly and send directly?

Former Member
0 Kudos

Hi,

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

<i>insert a block for the exception</i>

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.

<i>how to build the exception message ? It should map from what?</i>

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.

Regards,

Smitha.

Former Member
0 Kudos

Hi Simta, Thanks for your input. I am able to got it by sending a constant message when it enters the exception branch, before that I was not mapping it to Constant. I didnt have control step, had only transform step in Exception branch.

MICHAL HELPED ME.

Thanks,

Raj.

Former Member
0 Kudos

Sorry Smitha Rao

my understanding is very bad.

Now

i understand what you mean

You mean that each step correspond to an exception branch.

but

if i want to get the exception more detail

such as in the mapping i just want to know

which field failed mapping!

such as

Source->substring(10,2)->target

input source = "s"

it will raise exception

In your case, i just only know the transformation is wrong

but i dont know that the field source is not valid.

how can i catch the "source" field ?

Former Member
0 Kudos

Lawrence,

You question was not very clear.

Regards,

Smitha.

Former Member
0 Kudos

sorry Smitha Rao

i mean that

when my mapping raises an exception, how do i catch the

fault field and save to file?

Former Member
0 Kudos

Lawrence,

<i>when my mapping raises an exception, how do i catch the

fault field and save to file?</i>

You could have different exception handlers, to handle different kind of message exceptions.

Ex: source field is missing, an (field missing)exception is raised and a corresponding Exception Handler will take contol.

If, a value of a field is incorrect, we need to have another (incorrect value)exception and a corresponding exception handler.

Regards,

Smitha.

Message was edited by: Smitha Rao

Former Member
0 Kudos

Smitha Rao

I know what to do now

Thank you very much

Former Member
0 Kudos

Hi,

<i>whats the variable we need to pass in the control step of exception handling in BPM?</i>

A control step asks for three parameters:

1. Step name: name of the step. (you can give any name)

2. Action : What do you want the control step to do? throw an exception, or cancel a process.

3. If you want it to throw an exception, specify the name of the exception.

After this, you will have to place a exception handler which can handle this exception.

<i>how to map the error message back to the RFC Response</i>

What kind of error do you want to send?A mapping error?

Regards,

Smitha.