Search in sources :

Example 1 with PropertyWriter

use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.

the class IntermediateCatchEventConverterTest method errorEvent.

@Test
public void errorEvent() {
    Node node = createIntermediateErrorEventCatchingNode();
    PropertyWriter propertyWriter = tested.errorEvent(node);
    assertNotNull(propertyWriter);
    verify(boundaryEventPropertyWriter).setCancelActivity(CANCEL_ACTIVITY);
    verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
    verify(boundaryEventPropertyWriter).addError(errorRef);
    verifyCommonProperties(node);
}
Also used : Node(org.kie.workbench.common.stunner.core.graph.Node) BoundaryEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.BoundaryEventPropertyWriter) PropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter) CatchEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter) Test(org.junit.Test)

Example 2 with PropertyWriter

use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.

the class IntermediateCatchEventConverterTest method messageEvent.

@Test
public void messageEvent() {
    Node node = createIntermediateMessageEventCatchingNode();
    PropertyWriter propertyWriter = tested.messageEvent(node);
    assertNotNull(propertyWriter);
    verify(boundaryEventPropertyWriter).setCancelActivity(CANCEL_ACTIVITY);
    verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
    verify(boundaryEventPropertyWriter).addMessage(messageRef);
    verifyCommonProperties(node);
}
Also used : Node(org.kie.workbench.common.stunner.core.graph.Node) BoundaryEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.BoundaryEventPropertyWriter) PropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter) CatchEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter) Test(org.junit.Test)

Example 3 with PropertyWriter

use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.

the class IntermediateCatchEventConverterTest method linkEvent.

@Test
public void linkEvent() {
    Node node = createIntermediateLinkEventCatchingNode();
    PropertyWriter propertyWriter = tested.linkEvent(node);
    assertNotNull(propertyWriter);
    verify(boundaryEventPropertyWriter).addLink(linkRef);
    verifyCommonProperties(node);
}
Also used : Node(org.kie.workbench.common.stunner.core.graph.Node) BoundaryEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.BoundaryEventPropertyWriter) PropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter) CatchEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter) Test(org.junit.Test)

Example 4 with PropertyWriter

use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.

the class IntermediateCatchEventConverterTest method conditionalEvent.

@Test
public void conditionalEvent() {
    Node node = createIntermediateConditionalEventCatchingNode();
    PropertyWriter propertyWriter = tested.conditionalEvent(node);
    assertNotNull(propertyWriter);
    verify(boundaryEventPropertyWriter).setCancelActivity(CANCEL_ACTIVITY);
    verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
    verify(boundaryEventPropertyWriter).addCondition(conditionExpression);
    verifyCommonProperties(node);
}
Also used : Node(org.kie.workbench.common.stunner.core.graph.Node) BoundaryEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.BoundaryEventPropertyWriter) PropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter) CatchEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter) Test(org.junit.Test)

Example 5 with PropertyWriter

use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter in project kie-wb-common by kiegroup.

the class IntermediateThrowEventConverterTest method signalEvent.

@Test
public void signalEvent() {
    Node node = createIntermediateSignalEventThrowingNode();
    PropertyWriter propertyWriter = tested.signalEvent(node);
    assertNotNull(propertyWriter);
    verifyCommonProperties(node);
    verify(throwEventPropertyWriter).addSignal(signalRef);
    verify(throwEventPropertyWriter).addSignalScope(signalScope);
}
Also used : Node(org.kie.workbench.common.stunner.core.graph.Node) PropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter) ThrowEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ThrowEventPropertyWriter) Test(org.junit.Test)

Aggregations

PropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.PropertyWriter)21 Test (org.junit.Test)20 Node (org.kie.workbench.common.stunner.core.graph.Node)13 BoundaryEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.BoundaryEventPropertyWriter)8 CatchEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter)8 NodeImpl (org.kie.workbench.common.stunner.core.graph.impl.NodeImpl)8 CallActivityPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CallActivityPropertyWriter)6 BaseReusableSubprocess (org.kie.workbench.common.stunner.bpmn.definition.BaseReusableSubprocess)6 ReusableSubprocess (org.kie.workbench.common.stunner.bpmn.definition.ReusableSubprocess)6 View (org.kie.workbench.common.stunner.core.graph.content.view.View)6 ViewImpl (org.kie.workbench.common.stunner.core.graph.content.view.ViewImpl)6 ThrowEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ThrowEventPropertyWriter)5 DataObjectPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.DataObjectPropertyWriter)2 TextAnnotationPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.TextAnnotationPropertyWriter)2 AdHocAutostart (org.kie.workbench.common.stunner.bpmn.definition.property.task.AdHocAutostart)2 DataObject (org.kie.workbench.common.stunner.bpmn.definition.DataObject)1 TextAnnotation (org.kie.workbench.common.stunner.bpmn.definition.TextAnnotation)1 DataObjectType (org.kie.workbench.common.stunner.bpmn.definition.property.artifacts.DataObjectType)1 DataObjectTypeValue (org.kie.workbench.common.stunner.bpmn.definition.property.artifacts.DataObjectTypeValue)1 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)1