Search in sources :

Example 21 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 compensationEvent.

@Test
public void compensationEvent() {
    Node node = createIntermediateCompensationEventCatchingNode();
    PropertyWriter propertyWriter = tested.compensationEvent(node);
    assertNotNull(propertyWriter);
    verify(boundaryEventPropertyWriter).addSlaDueDate(slaDueDate);
    verify(boundaryEventPropertyWriter).addCompensation();
    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)

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