Question

8
Replies
609
Views
HARISURYANARAYANA Member since 2013 4 posts
Highmark
Posted: 2 years ago
Last activity: 2 years ago
Closed

How to identify invoking source/activity

Hi I have an activity, its being called from so many places/sources(activities, UI on change etc..)

Now I need to know from where this activity was invoked. (Mainly class name and Rule name)

Below is code snippet which is working fine, if this was called from activity. I am looking for any other better options.

PRStackFrame pRSF=tools.getStackFrame().getPrevious(); //is the current step holder

//Identifiying the previous activity step which is call of this activity.
while(pRSF!=null){
pRSF=pRSF.getPrevious();
if(pRSF!=null && pRSF.getType().toString().equals("ACTIVITY_STEP")){
break;
}
}

if(pRSF!=null){
tools.putParamValue("FinalValue",pRSF.getLabelVariable(0));
}

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn