Class WorkflowModel
java.lang.Object
com.adobe.cq.testing.client.workflow.WorkflowModel
A simple wrapper around the JSON representing a workflow model requested from the server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSimple inner class wrapping a JSON node defining a model nodeclassSimple inner class wrapping a JSON node defining a transition between nodes -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowModel(com.fasterxml.jackson.databind.JsonNode rootNode) The only constructor -
Method Summary
Modifier and TypeMethodDescriptionthe description of this modelgetFieldsMap(com.fasterxml.jackson.databind.JsonNode node) getId()The id of this modelAny meta data stored in this modelgetNodeById(String nodeId) getNodes()Returns a map of all nodes defined in this modelgetTitle()The title of this modelReturns a list of all transitions defined between the nodes.the version of this modelintthe major version number, usually 1intthe minor version number.
-
Constructor Details
-
WorkflowModel
public WorkflowModel(com.fasterxml.jackson.databind.JsonNode rootNode) The only constructor- Parameters:
rootNode- the root JSON node containing all the info
-
-
Method Details
-
getId
-
getTitle
-
getDescription
-
getVersion
-
getVersionMajor
public int getVersionMajor()the major version number, usually 1- Returns:
- the major version number
-
getVersionMinor
public int getVersionMinor()the minor version number.- Returns:
- the minor version number
-
getMetaData
Any meta data stored in this model- Returns:
- Map of metadata, where key is the properties name.
-
getNodes
Returns a map of all nodes defined in this model- Returns:
- a map of all nodes where the key is the node id, and the value is a
WorkflowModel.Nodeobject.
-
getNodeById
-
getTransitions
Returns a list of all transitions defined between the nodes.- Returns:
- List of
WorkflowModel.Transitionobjects
-
getFieldsMap
-