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();
serviceTask.setName(name);
serviceTask.setId(id);
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.