cancel
Showing results for 
Search instead for 
Did you mean: 

is there a way to get task id from expression?

accipiter
Champ in-the-making
Champ in-the-making
what i want is to get a url from a task's formkey with a taskid.

<userTask id="test" name="test" activiti:assignee="Bob" activiti:formKey="index.jsp?taskId=${someexpression}"></userTask>

is there an expression i can use to fill the task id automatically?
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I would say that Task instance is accessible from TaskListener.
(http://www.activiti.org/userguide/#apiExpressions)

Try to set variable there and use it in the expression.
http://www.activiti.org/userguide/#taskListeners

Regards
Martin