use of org.camunda.bpm.model.bpmn.instance.ManualTask in project camunda-bpmn-model by camunda.
the class ManualTaskImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ManualTask.class, BPMN_ELEMENT_MANUAL_TASK).namespaceUri(BPMN20_NS).extendsType(Task.class).instanceProvider(new ModelTypeInstanceProvider<ManualTask>() {
public ManualTask newInstance(ModelTypeInstanceContext instanceContext) {
return new ManualTaskImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.bpmn.instance.ManualTask in project camunda-bpm-platform by camunda.
the class ListenerProcessEngineServicesAccessTest method createModelAccessTask.
protected Task createModelAccessTask(BpmnModelInstance modelInstance, Class<?> delegateClass) {
ManualTask task = modelInstance.newInstance(ManualTask.class);
task.setId("manualTask");
CamundaExecutionListener executionListener = modelInstance.newInstance(CamundaExecutionListener.class);
executionListener.setCamundaEvent(ExecutionListener.EVENTNAME_START);
executionListener.setCamundaClass(delegateClass.getName());
task.builder().addExtensionElement(executionListener);
return task;
}
Aggregations