private PropertyWriter compensationEvent(Node<View<IntermediateCompensationEventThrowing>, ?> n) { IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent(); event.setId(n.getUUID()); IntermediateCompensationEventThrowing definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.addCompensation(); p.setBounds(n.getContent().getBounds()); return p; } }
private PropertyWriter escalationEvent(Node<View<IntermediateEscalationEventThrowing>, ?> n) { IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent(); event.setId(n.getUUID()); IntermediateEscalationEventThrowing definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); p.addEscalation(definition.getExecutionSet().getEscalationRef()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter messageEvent(Node<View<IntermediateMessageEventThrowing>, ?> n) { IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent(); event.setId(n.getUUID()); IntermediateMessageEventThrowing definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); MessageEventExecutionSet executionSet = definition.getExecutionSet(); p.addMessage(executionSet.getMessageRef()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter signalEvent(Node<View<IntermediateSignalEventThrowing>, ?> n) { IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent(); event.setId(n.getUUID()); IntermediateSignalEventThrowing definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); p.addSignal(definition.getExecutionSet().getSignalRef()); p.addSignalScope(definition.getExecutionSet().getSignalScope()); p.setBounds(n.getContent().getBounds()); return p; }