on 2017 Nov 30 1:09 PM
I'm using the Eclipse plugin. If you add a new step to the flow you can right click it, select technical information and see the ID of the step (for example CallActivity_6). I would like to have this identifier available in two cases:
I know that the message properties contain a parameter called ModelStepId which know the calling ID, but I cannot seem to obtain it (other than apply the toString function on the message properties).
So my question is: how to get the step identifier out of the properties map?
Thanks in advance!
Bram
Hello Bram,
As per my understanding there is no such property or header place holder available to retrieve the step Id.
For error scenarios ( where message gets failed ) then there is property : ${property.SAP_ErrorModelStepID} which captures the step id where error occurred or which caused the message failure.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can parse the message history to get the latest activity ID. With following script you will be able to identify the activity ID of the groovy script itself.
//Read Activity ID of groovy
def messageHistories = message.getProperty(Exchange.MESSAGE_HISTORY).join(',')
def lastCallActivity = messageHistories.substring(messageHistories.lastIndexOf("CallActivity"), messageHistories.length());
def activityIDOfGroovy = lastCallActivity.substring(0, lastCallActivity.indexOf("]"));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.