Package com.adobe.cq.testing.polling
Class WorkflowInstanceHistoryPoller
- java.lang.Object
-
- org.apache.sling.testing.clients.util.poller.Polling
-
- com.adobe.cq.testing.polling.WorkflowInstanceHistoryPoller
-
public class WorkflowInstanceHistoryPoller extends org.apache.sling.testing.clients.util.poller.Polling
A Utility Poller to wait until the worflow history contains any matching condition to be present For example you can check if the workflow history contains the process called "End" and that the status is "Completed" As usually as a poller it need that you provide the polling interval and max number of attempts before it abort the polling
-
-
Constructor Summary
Constructors Constructor Description WorkflowInstanceHistoryPoller(WorkflowClient client, String workflowInstancePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
call()
void
setCondition(String expectedProcess, String expectedStatus)
Set the condition that will define the polling
-
-
-
Constructor Detail
-
WorkflowInstanceHistoryPoller
public WorkflowInstanceHistoryPoller(WorkflowClient client, String workflowInstancePath)
-
-
Method Detail
-
call
public Boolean call() throws org.apache.sling.testing.clients.ClientException
-
setCondition
public void setCondition(String expectedProcess, String expectedStatus)
Set the condition that will define the polling- Parameters:
expectedProcess
- the process title that is expected to be found in the history itemsexpectedStatus
- the status of that history item (i.e completed, active etc..)
-
-