Class WorkflowInstance
- java.lang.Object
-
- com.adobe.cq.testing.client.workflow.WorkflowInstance
-
public class WorkflowInstance extends Object
Wraps a Workflow Instance info returned from server as JSON.
-
-
Constructor Summary
Constructors Constructor Description WorkflowInstance(com.fasterxml.jackson.databind.JsonNode rootNode)
The only constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getEndTime()
time when this instance was completed/abortedString
getId()
returns the id of this workflow instanceString
getInitiator()
returns who started this workflow instanceString
getModelId()
The model used for this workflow instanceString
getPayload()
the payload referenceString
getPayloadType()
The type of payload reference ,either URL or JCR_PATHDate
getStartTime()
time when the workflow instance was startedWorkflowClient.Status
getStatus()
returns the current state of this workflow instance, seeWorkflowClient.Status
List<String>
getWorkItemIds()
Map<String,String>
getWorkItems()
A map of all currently active work items belonging to this instance
-
-
-
Method Detail
-
getId
public String getId()
returns the id of this workflow instance- Returns:
- the id
-
getStatus
public WorkflowClient.Status getStatus()
returns the current state of this workflow instance, seeWorkflowClient.Status
- Returns:
- the current status.
-
getModelId
public String getModelId()
The model used for this workflow instance- Returns:
- the model id
-
getPayloadType
public String getPayloadType()
The type of payload reference ,either URL or JCR_PATH- Returns:
- the payload type
-
getPayload
public String getPayload()
the payload reference- Returns:
- the url or jcr path
-
getInitiator
public String getInitiator()
returns who started this workflow instance- Returns:
- the initiator id
-
getStartTime
public Date getStartTime()
time when the workflow instance was started- Returns:
- the start time
-
getEndTime
public Date getEndTime()
time when this instance was completed/aborted- Returns:
- the end time
-
-