Package science.aist.bpmn.viz
Class BpmnAutoLayout
- java.lang.Object
-
- science.aist.bpmn.viz.BpmnAutoLayout
-
public class BpmnAutoLayout extends Object
Auto layouts a BPMN model, with the help of different BPMN processors.
Modified from Flowable Engine
Note that in the Javadoc a lot of different process are mentioned. The following list will clarify the different meanings.
- Process element: Can be any element which describes a process in BPMN. So, in the most cases it can be a process or sub process
- TProcess: The BPMN element of a process
- TSubProcess: The BPMN element of a sub process
- Author:
- Joram Barrez, Clemens Toegel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BpmnAutoLayout.CustomHierarchicalLayout
Due to a bug (see http://forum.jgraph.com/questions/5952/mxhierarchicallayout-not-correct-when-using-child-vertex) We must extend the default hierarchical layout to tweak it a bit (see url link) otherwise the layouting crashes.
-
Constructor Summary
Constructors Constructor Description BpmnAutoLayout(javax.xml.bind.JAXBElement<org.omg.spec.bpmn.model.TDefinitions> tDefinitionsJAXBElement, boolean horizontal)
BpmnAutoLayout(BpmnProcessorData bpmnProcessorData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Method to setup the visualization of a given BPMN filevoid
handleSequenceFlow()
Method to handle the sequence flowvoid
layoutHandler(org.omg.spec.bpmn.model.TBaseElement flowElementsContainer)
Method to handle different flow element containers
-
-
-
Constructor Detail
-
BpmnAutoLayout
public BpmnAutoLayout(BpmnProcessorData bpmnProcessorData)
-
BpmnAutoLayout
public BpmnAutoLayout(javax.xml.bind.JAXBElement<org.omg.spec.bpmn.model.TDefinitions> tDefinitionsJAXBElement, boolean horizontal)
-
-
Method Detail
-
execute
public void execute()
Method to setup the visualization of a given BPMN file
-
layoutHandler
public void layoutHandler(org.omg.spec.bpmn.model.TBaseElement flowElementsContainer)
Method to handle different flow element containers- Parameters:
flowElementsContainer
- the container of flow elements -> can be either TProcess or TSubProcess at the moment
-
handleSequenceFlow
public void handleSequenceFlow()
Method to handle the sequence flow
-
-