Search in sources :

Example 6 with BaseAdHocSubprocess

use of org.kie.workbench.common.stunner.bpmn.definition.BaseAdHocSubprocess in project kie-wb-common by kiegroup.

the class SubProcessPropertyWriter method setAbsoluteBounds.

@Override
public void setAbsoluteBounds(Node<? extends View, ?> node) {
    super.setAbsoluteBounds(node);
    Object definition = node.getContent().getDefinition();
    if (definition instanceof BaseAdHocSubprocess || definition instanceof EventSubprocess || definition instanceof EmbeddedSubprocess) {
        shape.setIsExpanded(true);
    }
}
Also used : EventSubprocess(org.kie.workbench.common.stunner.bpmn.definition.EventSubprocess) BaseAdHocSubprocess(org.kie.workbench.common.stunner.bpmn.definition.BaseAdHocSubprocess) EmbeddedSubprocess(org.kie.workbench.common.stunner.bpmn.definition.EmbeddedSubprocess) DataObject(org.eclipse.bpmn2.DataObject)

Aggregations

BaseAdHocSubprocess (org.kie.workbench.common.stunner.bpmn.definition.BaseAdHocSubprocess)6 AdHocSubProcessPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.AdHocSubProcessPropertyWriter)4 View (org.kie.workbench.common.stunner.core.graph.content.view.View)4 Test (org.junit.Test)3 SubProcessPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.SubProcessPropertyWriter)3 AdHocSubprocess (org.kie.workbench.common.stunner.bpmn.definition.AdHocSubprocess)3 ViewImpl (org.kie.workbench.common.stunner.core.graph.content.view.ViewImpl)3 NodeImpl (org.kie.workbench.common.stunner.core.graph.impl.NodeImpl)3 EmbeddedSubprocess (org.kie.workbench.common.stunner.bpmn.definition.EmbeddedSubprocess)2 EventSubprocess (org.kie.workbench.common.stunner.bpmn.definition.EventSubprocess)2 AdHocAutostart (org.kie.workbench.common.stunner.bpmn.definition.property.task.AdHocAutostart)2 AdHocSubProcess (org.eclipse.bpmn2.AdHocSubProcess)1 DataObject (org.eclipse.bpmn2.DataObject)1 BPMNShape (org.eclipse.bpmn2.di.BPMNShape)1 Factories.bpmn2 (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.Factories.bpmn2)1 BPMNDiagram (org.kie.workbench.common.stunner.bpmn.definition.BPMNDiagram)1 BPMNViewDefinition (org.kie.workbench.common.stunner.bpmn.definition.BPMNViewDefinition)1 MultipleInstanceSubprocess (org.kie.workbench.common.stunner.bpmn.definition.MultipleInstanceSubprocess)1 CaseFileVariables (org.kie.workbench.common.stunner.bpmn.definition.property.cm.CaseFileVariables)1 CaseManagementSet (org.kie.workbench.common.stunner.bpmn.definition.property.cm.CaseManagementSet)1