@Before public void setUp() { when(propertyWriter.getRootElements()).thenReturn(propertyWriterRootElements); when(propertyWriter.getSimulationParameters()).thenReturn(propertyWriterElementParameters); when(propertyWriter.getItemDefinitions()).thenReturn(propertyWriterItemDefinitions); when(boundaryEventPropertyWriter.getRootElements()).thenReturn(propertyWriterRootElements); when(boundaryEventPropertyWriter.getSimulationParameters()).thenReturn(propertyWriterElementParameters); when(boundaryEventPropertyWriter.getItemDefinitions()).thenReturn(propertyWriterItemDefinitions); flowElement = new FlowElementImpl() {}; flowElement.setId(ELEMENT_ID); artifact = new ArtifactImpl() {}; artifact.setId(ELEMENT_ID); when(process.getFlowElements()).thenReturn(flowElements); when(process.getArtifacts()).thenReturn(artifacts); when(subProcess.getFlowElements()).thenReturn(flowElements); when(subProcess.getArtifacts()).thenReturn(artifacts); }
private PropertyWriter compensationEvent(Node<View<IntermediateCompensationEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateCompensationEvent definition = n.getContent().getDefinition(); 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 timerEvent(Node<View<IntermediateTimerEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateTimerEvent definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); CancellingTimerEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addTimer(executionSet.getTimerSettings()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter conditionalEvent(Node<View<IntermediateConditionalEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateConditionalEvent definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); CancellingConditionalEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addCondition(executionSet.getConditionExpression()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter errorEvent(Node<View<IntermediateErrorEventCatching>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateErrorEventCatching definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); CancellingErrorEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addError(executionSet.getErrorRef()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter signalEvent(Node<View<IntermediateSignalEventCatching>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateSignalEventCatching definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); CancellingSignalEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addSignal(definition.getExecutionSet().getSignalRef()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter escalationEvent(Node<View<IntermediateEscalationEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateEscalationEvent definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); CancellingEscalationEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addEscalation(executionSet.getEscalationRef()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter messageEvent(Node<View<IntermediateMessageEventCatching>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateMessageEventCatching definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); CancellingMessageEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addMessage(executionSet.getMessageRef()); p.setBounds(n.getContent().getBounds()); return p; }