Class WorkItem
- java.lang.Object
-
- com.adobe.cq.testing.client.workflow.WorkItem
-
public class WorkItem extends Object
Simple wrapper around the Work Item info returned by the server
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WorkItem.Delegatee
Simple inner class wrapping a Delegateeclass
WorkItem.Route
Simple inner class wrapping one route
-
Constructor Summary
Constructors Constructor Description WorkItem(com.fasterxml.jackson.databind.JsonNode rootNode)
the only constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<WorkItem.Delegatee>
getDelegatees()
Lost of all user/groups this work item can be delegated to.String
getId()
the id of this work item , equals its URIString
getInstanceURI()
the URI of the workflow instance this work item belongs toString
getModelId()
the model that was used to create the workflow instance this work item belongs to.String
getNodeId()
the node in the model that is associated with this work itemString
getPayLoad()
The payload referenceString
getPayloadType()
The type of payload managed by this work item, either URL or JCR_PATHMap
getProperties()
A map of all properties stored in this work itemArrayList<WorkItem.Route>
getRoutes()
list of all possible routes from this work itemDate
getStartDate()
The start date of this work item
-
-
-
Method Detail
-
getId
public String getId()
the id of this work item , equals its URI- Returns:
- the id
-
getInstanceURI
public String getInstanceURI()
the URI of the workflow instance this work item belongs to- Returns:
- the instance id
-
getModelId
public String getModelId()
the model that was used to create the workflow instance this work item belongs to.- Returns:
- the model id
-
getNodeId
public String getNodeId()
the node in the model that is associated with this work item- Returns:
- node id
-
getStartDate
public Date getStartDate()
The start date of this work item- Returns:
- start date
-
getPayloadType
public String getPayloadType()
The type of payload managed by this work item, either URL or JCR_PATH- Returns:
- type of payload
-
getPayLoad
public String getPayLoad()
The payload reference- Returns:
- the payload reference
-
getProperties
public Map 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
public ArrayList<WorkItem.Route> getRoutes()
list of all possible routes from this work item- Returns:
- a list of
WorkItem.Route
objects
-
getDelegatees
public ArrayList<WorkItem.Delegatee> getDelegatees()
Lost of all user/groups this work item can be delegated to.- Returns:
- list of
WorkItem.Delegatee
objects.
-
-