use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.AdHocSubProcessPropertyWriter in project kie-wb-common by kiegroup.
the class SubProcessConverter method convertAdHocSubprocessNode.
private SubProcessPropertyWriter convertAdHocSubprocessNode(Node<View<AdHocSubprocess>, ?> n) {
org.eclipse.bpmn2.AdHocSubProcess process = bpmn2.createAdHocSubProcess();
process.setId(n.getUUID());
AdHocSubProcessPropertyWriter p = propertyWriterFactory.of(process);
AdHocSubprocess definition = n.getContent().getDefinition();
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
ProcessData processData = definition.getProcessData();
p.setProcessVariables(processData.getProcessVariables());
AdHocSubprocessTaskExecutionSet executionSet = definition.getExecutionSet();
p.setAdHocCompletionCondition(executionSet.getAdHocCompletionCondition());
p.setAdHocOrdering(executionSet.getAdHocOrdering());
p.setOnEntryAction(executionSet.getOnEntryAction());
p.setOnExitAction(executionSet.getOnExitAction());
p.setSimulationSet(definition.getSimulationSet());
p.setBounds(n.getContent().getBounds());
return p;
}
Aggregations