use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ServiceTaskPropertyWriter in project kie-wb-common by kiegroup.
the class TaskConverter method customTask.
private PropertyWriter customTask(Node<View<CustomTask>, ?> n) {
org.eclipse.bpmn2.Task task = bpmn2.createTask();
task.setId(n.getUUID());
CustomTask definition = n.getContent().getDefinition();
ServiceTaskPropertyWriter p = propertyWriterFactory.of(task);
p.setServiceTaskName(definition.getName());
TaskGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
CustomTaskExecutionSet executionSet = definition.getExecutionSet();
p.setTaskName(executionSet.getTaskName().getValue());
p.setAsync(executionSet.getIsAsync().getValue());
p.setOnEntryAction(executionSet.getOnEntryAction());
p.setOnExitAction(executionSet.getOnExitAction());
p.setAdHocAutostart(executionSet.getAdHocAutostart().getValue());
p.setSlaDueDate(executionSet.getSlaDueDate().getValue());
p.setSimulationSet(definition.getSimulationSet());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAbsoluteBounds(n);
return p;
}
Aggregations