How to get next activityId for your process

Confluence User - 13 May, 2017

Hi.

How can I get the next activityId for my process, I am using plugin to approve and send email.

I need it construct the URL for approval e-mail notification. right now #assignment.activityId# is returning me the current activity id which user is submitting.

This is should be the correct URL for e-mail

https://abc.xyz.com/jw/web/userview/myApp/myUserView/_/myInbox?activityId=next_level_activity&_mode=assignment

 

I need next approval activityId which is in other swim lane

Regards,

Touqeer

forms;plugins

4


15 May, 2017
confluenceUser
confluenceUser

Hi, there is a similar question at Direct Link to Next Form/Activity using Email Tool

15 May, 2017
confluenceUser
confluenceUser

Hi Anders,

The above mention question is using the e-mail tol, I am using the custom plugin. Can we use Beanshell Hash Variable Plugin in our custom plugin? to get the  similer

 

if (activity[0].equalsIgnoreCase("approveActivity")) {
       return "This is customized message for Approval";
} elseif(........){
//add on accordingly
}else {
       return "This is default message";
}
Regards,
Touqeer
16 Sep, 2018
confluenceUser
confluenceUser

Dear Anders,

I have same issues with JSON tools, #assignment.activityId# is returning the current activity,

I need next activityid of current process.

 

(wink) Kitsda

22 Oct, 2018
confluenceUser
confluenceUser

Dear All,

 

Thank you, I m using 

#process.activityInst.activity1.instanceId#

** "activity1" is activity that you need to know.

It's working now.

Great!

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print