cancel
Showing results for 
Search instead for 
Did you mean: 

Alert for BPM Transformation Step

Former Member
0 Kudos

Hi I am trying to think of a way to get the information from my alert transformation step into my Alert Message.

The scenario is a multiline container called XML_Collect mapping to XML_Output a single container with the XML messages merged.

If I encounter an error with mapping, currently I am raising an Alert with Process <Process ID> and Long Text Transformation Failure.

I have the Transform step in a Block and an exception branch for the Alert. I am going to instigate a Container Operation step to fill my Container variables with information about the error.

In the BPM Workflow Log I can see the Transformation1 Container Instance with variables such a MAPPING and MESSAGES_IN and _EXCEPTIONS in it.

Can I reference this container in my Container Operation.

Ideally I would like to know which XML message from the multiline container generated the mapping error. This would help in correcting.

I have read some information on a UDF calling Alerts but I am not sure if this is the method to use.

thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Make sure that the container containing the information you want to transfer via the alert message is defined at Proces level, otherwise the info/value you want won't appear in the alert message (eg: email).

Gaetan Nys

Answers (3)

Answers (3)

Former Member
0 Kudos

We never achieved this and redesigned the BPM Alert to just trigger and kept it all very simple. Was disappointed could not have done more however ran out of time.

Former Member
0 Kudos

It is MESSAGES_IN

We have

MAPPING MAPPING http://<company>.com/msghdr IM_T_MSGHDR_V3_to_T_MSGHDR_V3_Multi-<...>-1-

TRACE <?xml version="1.0" encoding="utf-8" ?>

<MappingTrace><Trace level="1" type="T">Mapping-Namespace:http://company.com/msghdr </Trace>

<Trace level="1" type="T">Mapping-Name:IM_T_MSGHDR_V3_to_T_MSGHDR_V3_Multi </Trace>

<Trace level="1" type="T">Mapping- ...

This trace is what appears in the XML trace also

MESSAGES_IN MESSAGES_IN < 1 Entry >

MESSAGES_IN[1] MESSAGES_IN[1] 0000000001-<...>

NUMB Parameter ID 0000000001

MESSAGES MESSAGES < 3 Entries >

XC ZXI_PROXY_MI_MSGHDR_V3_0001 E0630F307D7B11DCA23700145E6916E5

XC ZXI_PROXY_MI_MSGHDR_V3_0001 E035BDA07D7B11DCB90500145E6916E5

XC ZXI_PROXY_MI_MSGHDR_V3_0001 BA2A92307D7511DCB09900145E6916E5

then the XML Header and Payload.

_EXCEPTIONS _EXCEPTIONS < 3 Entries >

_EXCEPTIONS[1] EXCEPTIONS[1] Component MAPPING has reported an error-The exception occurred (program: CLSW..

_EXCEPTIONS[2] EXCEPTIONS[2] com/sap/xi/tf/MM_T_MSGHDR_V3_to_T_MSGHDR_V3_Mult~com.sap.aii.utilxi.misc.api...

I have just tried the variable &_WORKITEM.WORKITEMID& and this gives the work item ID of the starting step for the Process.

My MESSAGE_ID variable that I am updating with the container variable straight after the Transformation step has the first message id from the multiline container but I know this isn't my incorrect message.

Former Member
0 Kudos

The Variable I defined in my container is available to the whole process.

I am wondering about calling a function module to read the instance container for the Transformation1 step...this might solve my problem...

Former Member
0 Kudos

Hi,

Which variable holds the potential XML message that has failed - is it MESSAGES_IN ?

I am going to try something out and post back to you.

Cheers

Colin.