AnsweredAssumed Answered

import org.activiti.bpmn.model.ServiceTask

Question asked by jain_arnaud on Apr 17, 2013
Latest reply on Apr 18, 2013 by jbarrez
I try to use the following packages:
import org.activiti.bpmn.model.Process;
import org.activiti.bpmn.model.ServiceTask;
to define a new process with new Service Task.
I instantiate the following lines:
Process process = new Process();
ServiceTask serviceTask = new ServiceTask();
But when I run on my test, I have the following error:
"One of the attributes 'class', 'delegateExpression', 'type', 'operation', or 'expression' is mandatory on serviceTask."
What kind of method is necessary to define the Service Task ?
serviceTask.setType() ? but what are the values available ?
Thanks for yours answers.