cancel
Showing results for 
Search instead for 
Did you mean: 

import org.activiti.bpmn.model.ServiceTask

jain_arnaud
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
setImplementation() (with a package + class name)
and (optionally, I believe) setImplementationType()