use of org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet in project kie-wb-common by kiegroup.
the class StartEventConverter method signalEvent.
private PropertyWriter signalEvent(Node<View<StartSignalEvent>, ?> n) {
StartEvent event = bpmn2.createStartEvent();
event.setId(n.getUUID());
StartSignalEvent definition = n.getContent().getDefinition();
CatchEventPropertyWriter p = propertyWriterFactory.of(event);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getName().getValue());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
InterruptingSignalEventExecutionSet executionSet = definition.getExecutionSet();
p.addSignal(executionSet.getSignalRef());
p.setBounds(n.getContent().getBounds());
return p;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet in project kie-wb-common by kiegroup.
the class GatewayConverter method exclusive.
private PropertyWriter exclusive(Node<View<ExclusiveGateway>, ?> n) {
org.eclipse.bpmn2.ExclusiveGateway gateway = bpmn2.createExclusiveGateway();
GatewayPropertyWriter p = propertyWriterFactory.of(gateway);
gateway.setId(n.getUUID());
ExclusiveGateway definition = n.getContent().getDefinition();
p.setGatewayDirection(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
GatewayExecutionSet executionSet = definition.getExecutionSet();
p.setDefaultRoute(executionSet.getDefaultRoute().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet in project kie-wb-common by kiegroup.
the class GatewayConverter method parallel.
private PropertyWriter parallel(Node<View<ParallelGateway>, ?> n) {
org.eclipse.bpmn2.ParallelGateway gateway = bpmn2.createParallelGateway();
GatewayPropertyWriter p = propertyWriterFactory.of(gateway);
gateway.setId(n.getUUID());
ParallelGateway definition = n.getContent().getDefinition();
p.setGatewayDirection(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet in project kie-wb-common by kiegroup.
the class LaneConverter method toElement.
public Result<LanePropertyWriter> toElement(Node<View<? extends BPMNViewDefinition>, ?> node) {
return NodeMatch.fromNode(BPMNViewDefinition.class, LanePropertyWriter.class).when(Lane.class, n -> {
org.eclipse.bpmn2.Lane lane = bpmn2.createLane();
lane.setId(n.getUUID());
LanePropertyWriter p = propertyWriterFactory.of(lane);
Lane definition = n.getContent().getDefinition();
BPMNGeneralSet general = definition.getGeneral();
lane.setName(general.getName().getValue());
p.setDocumentation(general.getName().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}).ignore(Object.class).apply(node);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet 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