Class MxProcessInstanceDiagramProvider
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.processman.diagram.mx.MxProcessInstanceDiagramProvider
-
- All Implemented Interfaces:
ProcessDefinitionDiagramProvider<com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram>
public class MxProcessInstanceDiagramProvider extends Object implements ProcessDefinitionDiagramProvider<com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram>
Implements the Process Instance Diagram Provider using mxGraph.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description MxProcessInstanceDiagramProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityNode
addActivity(ActivityDefinition nextActivity, ActivityDefinition previousActivity, String pathName)
Adds an activity nodeActorNode
addActor(Actor actor)
Adds an actor.void
executeLayout(ActivityDefinition activityDefinition)
TODO: Removes once the coordinates are loaded from the xmlcom.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram
getUiElement()
Gets the process definition diagram.
-
-
-
Method Detail
-
getUiElement
public com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram getUiElement()
Description copied from interface:ProcessDefinitionDiagramProvider
Gets the process definition diagram.- Specified by:
getUiElement
in interfaceProcessDefinitionDiagramProvider<com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram>
- Returns:
- the process definition diagram.
-
addActor
public ActorNode addActor(Actor actor)
Description copied from interface:ProcessDefinitionDiagramProvider
Adds an actor.- Specified by:
addActor
in interfaceProcessDefinitionDiagramProvider<com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram>
- Parameters:
actor
- The actor to be added.- Returns:
- An actor node.
-
addActivity
public ActivityNode addActivity(ActivityDefinition nextActivity, ActivityDefinition previousActivity, String pathName)
Description copied from interface:ProcessDefinitionDiagramProvider
Adds an activity node- Specified by:
addActivity
in interfaceProcessDefinitionDiagramProvider<com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram>
- Parameters:
nextActivity
- The activity to be added.previousActivity
- The previous activity.pathName
- The connection label- Returns:
- An activity node.
-
executeLayout
public void executeLayout(ActivityDefinition activityDefinition)
Description copied from interface:ProcessDefinitionDiagramProvider
TODO: Removes once the coordinates are loaded from the xml- Specified by:
executeLayout
in interfaceProcessDefinitionDiagramProvider<com.neotropic.flow.component.mxgraph.bpmn.BPMNDiagram>
- Parameters:
activityDefinition
- activity definition to execute layout
-
-