AnsweredAssumed Answered

Obtain the current TaskId

Question asked by variag on May 21, 2012
Latest reply on May 23, 2012 by variag
Hello guys,

How could I obtain the current taskid of a process in execution?

I have tried it with this code but throw an exception: "The task with this <id> doesn't exists"

public void notify(DelegateExecution execution) throws Exception {
[…]
String taskId = execution.getId();
List<FormProperty> formProperties = ProcessEngines.getDefaultProcessEngine().getFormService()
.getTaskFormData(taskId).getFormProperties();
[…]
}

Thanks for your replies!

Bye!

Outcomes