com.amazonaws.services.simpleworkflow.flow.test
Class TestGenericWorkflowClient

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.test.TestGenericWorkflowClient
All Implemented Interfaces:
GenericWorkflowClient

public class TestGenericWorkflowClient
extends Object
implements GenericWorkflowClient


Field Summary
protected  DecisionContextProvider decisionContextProvider
           
protected  WorkflowDefinitionFactoryFactory factoryFactory
           
 
Constructor Summary
TestGenericWorkflowClient()
           
TestGenericWorkflowClient(WorkflowDefinitionFactoryFactory factoryFactory)
           
TestGenericWorkflowClient(WorkflowDefinitionFactoryFactory factoryFactory, DecisionContextProvider decisionContextProvider)
           
 
Method Summary
 void continueAsNewOnCompletion(ContinueAsNewWorkflowExecutionParameters parameters)
           
 String generateUniqueId()
          Deterministic unique Id generator
 DecisionContextProvider getDecisionContextProvider()
           
 WorkflowDefinitionFactoryFactory getFactoryFactory()
           
 String getWorkflowState(WorkflowExecution execution)
           
 void requestCancelWorkflowExecution(WorkflowExecution execution)
           
 void setDecisionContextProvider(DecisionContextProvider decisionContextProvider)
           
 void setFactoryFactory(WorkflowDefinitionFactoryFactory factoryFactory)
           
 Promise<Void> signalWorkflowExecution(SignalExternalWorkflowParameters signalParameters)
           
 Promise<StartChildWorkflowReply> startChildWorkflow(StartChildWorkflowExecutionParameters parameters)
          Start child workflow.
 Promise<String> startChildWorkflow(String workflow, String version, Promise<String> input)
           
 Promise<String> startChildWorkflow(String workflow, String version, String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factoryFactory

protected WorkflowDefinitionFactoryFactory factoryFactory

decisionContextProvider

protected DecisionContextProvider decisionContextProvider
Constructor Detail

TestGenericWorkflowClient

public TestGenericWorkflowClient(WorkflowDefinitionFactoryFactory factoryFactory,
                                 DecisionContextProvider decisionContextProvider)

TestGenericWorkflowClient

public TestGenericWorkflowClient(WorkflowDefinitionFactoryFactory factoryFactory)

TestGenericWorkflowClient

public TestGenericWorkflowClient()
Method Detail

getFactoryFactory

public WorkflowDefinitionFactoryFactory getFactoryFactory()

setFactoryFactory

public void setFactoryFactory(WorkflowDefinitionFactoryFactory factoryFactory)

getDecisionContextProvider

public DecisionContextProvider getDecisionContextProvider()

setDecisionContextProvider

public void setDecisionContextProvider(DecisionContextProvider decisionContextProvider)

startChildWorkflow

public Promise<StartChildWorkflowReply> startChildWorkflow(StartChildWorkflowExecutionParameters parameters)
Description copied from interface: GenericWorkflowClient
Start child workflow.

Specified by:
startChildWorkflow in interface GenericWorkflowClient
Returns:
becomes ready when child successfully started. StartChildWorkflowReply.getResult() becomes ready upon child completion.

startChildWorkflow

public Promise<String> startChildWorkflow(String workflow,
                                          String version,
                                          String input)
Specified by:
startChildWorkflow in interface GenericWorkflowClient

startChildWorkflow

public Promise<String> startChildWorkflow(String workflow,
                                          String version,
                                          Promise<String> input)
Specified by:
startChildWorkflow in interface GenericWorkflowClient

signalWorkflowExecution

public Promise<Void> signalWorkflowExecution(SignalExternalWorkflowParameters signalParameters)
Specified by:
signalWorkflowExecution in interface GenericWorkflowClient

requestCancelWorkflowExecution

public void requestCancelWorkflowExecution(WorkflowExecution execution)
Specified by:
requestCancelWorkflowExecution in interface GenericWorkflowClient

getWorkflowState

public String getWorkflowState(WorkflowExecution execution)
                        throws WorkflowException
Throws:
WorkflowException

continueAsNewOnCompletion

public void continueAsNewOnCompletion(ContinueAsNewWorkflowExecutionParameters parameters)
Specified by:
continueAsNewOnCompletion in interface GenericWorkflowClient

generateUniqueId

public String generateUniqueId()
Description copied from interface: GenericWorkflowClient
Deterministic unique Id generator

Specified by:
generateUniqueId in interface GenericWorkflowClient


Copyright © 2016. All rights reserved.