Please Provide code for get taskname , taskid , current Case id using Bonitasoft api

1
0
-1

hello ,

i create one process at i want to mail Admin after task completed following details

**logged User ID logged User Name Name of task Case ID Task ID **

i found user detail by getIdentityAPI() but how to find this processes terms .

pl provide specific code or API name

thanks advance for the help

1 answer

1
0
-1
This one is the BEST answer!

Hello, You can also use a variable that is provided by the Bonita BPM Engine that is executing the process. To add a provided variable to an expression, select the variable from the Select a provided variable... drop-down list.

  • activityInstanceId: the identifier of the activity (step or subprocess) instance
  • processInstanceId: the identifier of the process instance

Hope this helps, Haris

Comments

Submitted by kppatel on Thu, 04/10/2014 - 13:30

Thank you so much for your reply . i got all answer. but again just one query .

process variable : UserloggedID i can use with API accessor to get user detail like name , contact and all but actually i want that specific user id .

each user's static unique id . so whenever i want to call any users detail it would be easy .

i tried to just print "loggeduserID" variable but it seems to error . so how to resolve it . ??

thanks in advance

Submitted by haris.subasic on Thu, 04/10/2014 - 13:32

Hello, loggedUserID is the identifier of the user who is performing an activity at the time when the expression is evaluated, so it can only by used on human tasks and it will have a value during the execution of a human task.

Submitted by kppatel on Thu, 04/10/2014 - 14:09

ok , Thank you

Notifications