Class WorkItem
java.lang.Object
com.adobe.cq.testing.client.workflow.WorkItem
Simple wrapper around the Work Item info returned by the server
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Simple inner class wrapping a Delegateeclass
Simple inner class wrapping one route -
Constructor Summary
ConstructorDescriptionWorkItem
(com.fasterxml.jackson.databind.JsonNode rootNode) the only constructor -
Method Summary
Modifier and TypeMethodDescriptionLost of all user/groups this work item can be delegated to.getId()
the id of this work item , equals its URIthe URI of the workflow instance this work item belongs tothe model that was used to create the workflow instance this work item belongs to.the node in the model that is associated with this work itemThe payload referenceThe type of payload managed by this work item, either URL or JCR_PATHA map of all properties stored in this work itemlist of all possible routes from this work itemThe start date of this work item
-
Constructor Details
-
WorkItem
public WorkItem(com.fasterxml.jackson.databind.JsonNode rootNode) the only constructor- Parameters:
rootNode
- the JSON node containing all the infos
-
-
Method Details
-
getId
the id of this work item , equals its URI- Returns:
- the id
-
getInstanceURI
the URI of the workflow instance this work item belongs to- Returns:
- the instance id
-
getModelId
the model that was used to create the workflow instance this work item belongs to.- Returns:
- the model id
-
getNodeId
the node in the model that is associated with this work item- Returns:
- node id
-
getStartDate
The start date of this work item- Returns:
- start date
-
getPayloadType
The type of payload managed by this work item, either URL or JCR_PATH- Returns:
- type of payload
-
getPayLoad
The payload reference- Returns:
- the payload reference
-
getProperties
A map of all properties stored in this work item- Returns:
- map of all properties , where the key is the name of the property.
-
getRoutes
list of all possible routes from this work item- Returns:
- a list of
WorkItem.Route
objects
-
getDelegatees
Lost of all user/groups this work item can be delegated to.- Returns:
- list of
WorkItem.Delegatee
objects.
-