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

cancel
Showing results for 
Search instead for 
Did you mean: 
alidayvn
Member II

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

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
ssciacca
Active Member II

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

In Alfresco 5.2 I use the following:

public void notify(DelegateTask task)
{

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