public class WorkflowModel extends Object
Modifier and Type | Class and Description |
---|---|
class |
WorkflowModel.Node
Simple inner class wrapping a JSON node defining a model node
|
class |
WorkflowModel.Transition
Simple inner class wrapping a JSON node defining a transition between nodes
|
Constructor and Description |
---|
WorkflowModel(org.codehaus.jackson.JsonNode rootNode)
The only constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
the description of this model
|
protected Map<String,String> |
getFieldsMap(org.codehaus.jackson.JsonNode node) |
String |
getId()
The id of this model
|
Map |
getMetaData()
Any meta data stored in this model
|
WorkflowModel.Node |
getNodeById(String nodeId) |
Map<String,WorkflowModel.Node> |
getNodes()
Returns a map of all nodes defined in this model
|
String |
getTitle()
The title of this model
|
ArrayList<WorkflowModel.Transition> |
getTransitions()
Returns a list of all transitions defined between the nodes.
|
String |
getVersion()
the version of this model
|
int |
getVersionMajor()
the major version number, usually 1
|
int |
getVersionMinor()
the minor version number.
|
public WorkflowModel(org.codehaus.jackson.JsonNode rootNode)
rootNode
- the root JSON node containing all the infopublic String getId()
public String getTitle()
public String getDescription()
public String getVersion()
public int getVersionMajor()
public int getVersionMinor()
public Map getMetaData()
public Map<String,WorkflowModel.Node> getNodes()
WorkflowModel.Node
object.public WorkflowModel.Node getNodeById(String nodeId)
public ArrayList<WorkflowModel.Transition> getTransitions()
WorkflowModel.Transition
objectsCopyright © 2018. All rights reserved.