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
-
Field Summary
Fields inherited from class org.apache.sling.testing.clients.util.poller.Polling
c, exceptions, lastException, waited -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowInstanceHistoryPoller(WorkflowClient client, String workflowInstancePath) -
Method Summary
Modifier and TypeMethodDescriptioncall()voidsetCondition(String expectedProcess, String expectedStatus) Set the condition that will define the pollingMethods inherited from class org.apache.sling.testing.clients.util.poller.Polling
getExceptions, getLastException, getWaited, message, poll
-
Constructor Details
-
WorkflowInstanceHistoryPoller
-
-
Method Details
-
call
-
setCondition
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..)
-