cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic alert

Former Member
0 Kudos

I need to include my source system in dynamic alert message. Do i need to assign the SXMS_ERRSRC_SYSNAME to a container and then use that container in alert message (in BPM)

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206604
Active Contributor
0 Kudos

Hi,

Check out this blog by Bhavesh very interesting and this will make your work simple

/people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts

Thanks,

Prakash

Former Member
0 Kudos

Prakash,

I want to do this from BPM (for general alerts i can do it in long text).

moorthy
Active Contributor
0 Kudos

Hi,

have a look into this blog-

/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

Regards,

Moorthy

bhavesh_kantilal
Active Contributor
0 Kudos

SSG,

Get the Sender Service name in a container element of your BPM. Use the following code to get the Sender Service ,

java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

String senderservice = (String) map.get(SenderService);

Then use this container element in your alerts from the BPM.

Regards,

Bhavesh

Former Member
0 Kudos

Hi SSG,

YOu can actually follow the procedure you have mentioned in your query.

Regards

Vijaya

Former Member
0 Kudos

Bhavesh,

where do we code this logic? User defined function in mapping? Is there any other options?

<i>java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

String senderservice = (String) map.get(SenderService);</i>

bhavesh_kantilal
Active Contributor
0 Kudos

SSG,

Yes, we need to have this in an UDF in your message mapping. Then, assign it to some container element using a container operation and then use the same in your alert text.

Regards,

Bhavesh