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
Modifier and TypeClassDescriptionclass
Simple inner class wrapping a JSON node defining a model nodeclass
Simple inner class wrapping a JSON node defining a transition between nodes -
Constructor Summary
ConstructorDescriptionWorkflowModel
(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 modelint
the major version number, usually 1int
the 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
The id of this model- Returns:
- the id
-
getTitle
The title of this model- Returns:
- the title
-
getDescription
the description of this model- Returns:
- the description
-
getVersion
the version of this model- Returns:
- the version
-
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.Node
object.
-
getNodeById
-
getTransitions
Returns a list of all transitions defined between the nodes.- Returns:
- List of
WorkflowModel.Transition
objects
-
getFieldsMap
-