use of org.kie.workbench.common.stunner.bpmn.definition.StartEscalationEvent in project kie-wb-common by kiegroup.
the class StartEscalationEventTest method testUnmarshallSubprocessLevelEventFilledProperties.
@Test
@Override
public void testUnmarshallSubprocessLevelEventFilledProperties() throws Exception {
final String EVENT_NAME = "Escalation event02 name ~!@#$%^&*()_+`-={}|[]\\:\";'<>?,./";
final String EVENT_DOCUMENTATION = "Escalation event02 doc\n ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,./";
final String ESCALATION_REF = "escalation02";
final String EVENT_DATA_OUTPUT = "||output:String||[dout]output->processGlobalVar";
Diagram<Graph, Metadata> diagram = getDiagram();
assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM);
StartEscalationEvent filledSubprocess = getStartNodeById(diagram, FILLED_SUBPROCESS_LEVEL_EVENT_ID);
assertGeneralSet(filledSubprocess.getGeneral(), EVENT_NAME, EVENT_DOCUMENTATION);
assertEscalationEventExecutionSet(filledSubprocess.getExecutionSet(), ESCALATION_REF, INTERRUPTING, SLA_DUE_DATE);
assertDataIOSet(filledSubprocess.getDataIOSet(), EVENT_DATA_OUTPUT);
}
use of org.kie.workbench.common.stunner.bpmn.definition.StartEscalationEvent in project kie-wb-common by kiegroup.
the class StartEscalationEventTest method testUnmarshallTopLevelEventFilledProperties.
@Test
@Override
public void testUnmarshallTopLevelEventFilledProperties() throws Exception {
final String EVENT_NAME = "Escalation event01 name ~!@#$%^&*()_+`-={}|[]\\:\";'<>?,./";
final String EVENT_DOCUMENTATION = "Escalation event01 doc\n ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,./";
final String ESCALATION_REF = "escalation01";
final String EVENT_DATA_OUTPUT = "||output:String||[dout]output->processGlobalVar";
Diagram<Graph, Metadata> diagram = getDiagram();
assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM);
StartEscalationEvent filledTop = getStartNodeById(diagram, FILLED_TOP_LEVEL_EVENT_ID);
assertGeneralSet(filledTop.getGeneral(), EVENT_NAME, EVENT_DOCUMENTATION);
assertEscalationEventExecutionSet(filledTop.getExecutionSet(), ESCALATION_REF, INTERRUPTING, SLA_DUE_DATE);
assertDataIOSet(filledTop.getDataIOSet(), EVENT_DATA_OUTPUT);
}
use of org.kie.workbench.common.stunner.bpmn.definition.StartEscalationEvent in project kie-wb-common by kiegroup.
the class EventInterruptingViewHandlerTest method testHandleEscalationIsNotInterrupting.
@Test
@SuppressWarnings("unchecked")
public void testHandleEscalationIsNotInterrupting() {
final StartEscalationEvent bean = new StartEscalationEvent();
bean.getExecutionSet().getIsInterrupting().setValue(false);
tested.handle(bean, view);
verify(prim1).setFillAlpha(eq(0d));
verify(prim1).setStrokeAlpha(eq(1d));
}
use of org.kie.workbench.common.stunner.bpmn.definition.StartEscalationEvent in project kie-wb-common by kiegroup.
the class StartEventFilterProviderFactoryTest method testFilterProviderShowIsInterruptingField.
@Test
public void testFilterProviderShowIsInterruptingField() {
BaseStartEvent[] testedClasses = { new StartSignalEvent(), new StartTimerEvent(), new StartConditionalEvent(), new StartEscalationEvent(), new StartMessageEvent() };
when(parentView.getDefinition()).thenReturn(eventSubprocess);
Stream.of(testedClasses).forEach(startEvent -> testStartEventFilterProviderShowIsInterruptingField(startEvent));
}
use of org.kie.workbench.common.stunner.bpmn.definition.StartEscalationEvent in project kie-wb-common by kiegroup.
the class ProcessEscalationRefProviderTest method mockStartEscalationEventNode.
private Node mockStartEscalationEventNode(String escalationRefValue) {
StartEscalationEvent event = new StartEscalationEvent();
event.setExecutionSet(new InterruptingEscalationEventExecutionSet(new IsInterrupting(true), new SLADueDate(), new EscalationRef(escalationRefValue)));
return mockNode(event);
}
Aggregations