use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.
the class ReusableSubprocessConverterTest method testToFlowElement_process.
@Test
public void testToFlowElement_process() {
final BaseReusableSubprocess definition = new ReusableSubprocess();
final View<BaseReusableSubprocess> view = new ViewImpl<>(definition, Bounds.create());
final Node<View<BaseReusableSubprocess>, ?> node = new NodeImpl<>(java.util.UUID.randomUUID().toString());
node.setContent(view);
final PropertyWriter propertyWriter = tested.toFlowElement(node);
assertTrue(CallActivityPropertyWriter.class.isInstance(propertyWriter));
assertFalse(CustomElement.isCase.of(propertyWriter.getFlowElement()).get());
}
use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverterTest method signalEvent.
@Test
public void signalEvent() {
Node node = createIntermediateSignalEventCatchingNode();
PropertyWriter propertyWriter = tested.signalEvent(node);
assertNotNull(propertyWriter);
verify(boundaryEventPropertyWriter).setCancelActivity(CANCEL_ACTIVITY);
verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
verify(boundaryEventPropertyWriter).addSignal(signalRef);
verifyCommonProperties(node);
}
use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverterTest method timerEvent.
@Test
public void timerEvent() {
Node node = createIntermediateTimerEventCatchingNode();
PropertyWriter propertyWriter = tested.timerEvent(node);
assertNotNull(propertyWriter);
verify(boundaryEventPropertyWriter).setCancelActivity(CANCEL_ACTIVITY);
verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
verify(boundaryEventPropertyWriter).addTimer(timerSettings);
verifyCommonProperties(node);
}
use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverterTest method escalationEvent.
@Test
public void escalationEvent() {
Node node = createIntermediateEscalationEventCatchingNode();
PropertyWriter propertyWriter = tested.escalationEvent(node);
assertNotNull(propertyWriter);
verify(boundaryEventPropertyWriter).setCancelActivity(CANCEL_ACTIVITY);
verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
verify(boundaryEventPropertyWriter).addEscalation(escalationRef);
verifyCommonProperties(node);
}
use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverterTest method messageEvent.
@Test
public void messageEvent() {
Node node = createIntermediateMessageEventThrowingNode();
PropertyWriter propertyWriter = tested.messageEvent(node);
assertNotNull(propertyWriter);
verifyCommonProperties(node);
verify(throwEventPropertyWriter).addMessage(messageRef);
}
Aggregations