cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the outcome of a review task in TaskListener?

alidayvn
Champ in-the-making
Champ in-the-making

I have a user review task (which is parallel and Multi-instance type), which has custom form in Activiti with custom outcomes (Approve and Reject)... once the task gets completed, I want to know the form variable into which the task outcome is stored... I believe it is one of the task variables.... I want to access it in a Java Task Listener on task complete... please guide...

1 REPLY 1

ssciacca
Confirmed Champ
Confirmed Champ

In Alfresco 5.2 I use the following:

public void notify(DelegateTask task)
{

  String outcome = (String)task.getVariableLocal("outcome_property_name");
  . . .
}