use of org.kie.workbench.common.stunner.bpmn.definition.property.subProcess.execution.EventSubprocessExecutionSet in project kie-wb-common by kiegroup.
the class SubProcessConverter method convertEventSubprocessNode.
protected SubProcessPropertyWriter convertEventSubprocessNode(Node<View<EventSubprocess>, ?> n) {
SubProcess process = bpmn2.createSubProcess();
process.setId(n.getUUID());
SubProcessPropertyWriter p = propertyWriterFactory.of(process);
EventSubprocess definition = n.getContent().getDefinition();
process.setTriggeredByEvent(true);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
ProcessData processData = definition.getProcessData();
p.setProcessVariables(processData.getProcessVariables());
EventSubprocessExecutionSet executionSet = definition.getExecutionSet();
p.setAsync(executionSet.getIsAsync().getValue());
p.setSlaDueDate(executionSet.getSlaDueDate());
p.setSimulationSet(definition.getSimulationSet());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAbsoluteBounds(n);
return p;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.subProcess.execution.EventSubprocessExecutionSet in project kie-wb-common by kiegroup.
the class BaseSubProcessConverter method convertEventSubprocessNode.
private BpmnNode convertEventSubprocessNode(SubProcess subProcess) {
Node<View<EventSubprocess>, Edge> node = delegate.factoryManager.newNode(subProcess.getId(), EventSubprocess.class);
EventSubprocess definition = node.getContent().getDefinition();
SubProcessPropertyReader p = delegate.propertyReaderFactory.of(subProcess);
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setExecutionSet(new EventSubprocessExecutionSet(new IsAsync(p.isAsync()), new SLADueDate(p.getSlaDueDate())));
definition.setProcessData(new ProcessData(new ProcessVariables(p.getProcessVariables())));
definition.setSimulationSet(p.getSimulationSet());
definition.setAdvancedData(new AdvancedData(p.getMetaDataAttributes()));
definition.setDimensionsSet(p.getRectangleDimensionsSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
node.getContent().setBounds(p.getBounds());
return BpmnNode.of(node, p);
}
Aggregations