use of org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.TaskPropertyReader in project kie-wb-common by kiegroup.
the class TaskConverter method noneTask.
private BpmnNode noneTask(Task task) {
Node<View<NoneTask>, Edge> node = factoryManager.newNode(task.getId(), NoneTask.class);
TaskPropertyReader p = propertyReaderFactory.of(task);
NoneTask definition = node.getContent().getDefinition();
definition.setGeneral(new TaskGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setExecutionSet(new EmptyTaskExecutionSet());
definition.setSimulationSet(p.getSimulationSet());
node.getContent().setBounds(p.getBounds());
definition.setDimensionsSet(p.getRectangleDimensionsSet());
definition.setBackgroundSet(p.getBackgroundSet());
definition.setFontSet(p.getFontSet());
return BpmnNode.of(node);
}
Aggregations