Did this page help you?

   Yes   No   Tell us about it...

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

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

public class TestPOJOWorkflowImplementationGenericWorkflowClient
extends java.lang.Object
implements GenericWorkflowClient


Constructor Summary
TestPOJOWorkflowImplementationGenericWorkflowClient()
           
 
Method Summary
 void addWorkflowImplementationType(java.lang.Class<?> workflowImplementationType)
           
 void addWorkflowImplementationType(java.lang.Class<?> workflowImplementationType, DataConverter converterOverride)
           
 void continueAsNewOnCompletion(ContinueAsNewWorkflowExecutionParameters parameters)
           
 java.lang.String generateUniqueId()
          Deterministic unique Id generator
 DecisionContextProvider getDecisionContextProvider()
           
 java.lang.String getWorkflowState(WorkflowExecution execution)
           
 java.lang.Iterable<WorkflowType> getWorkflowTypesToRegister()
           
 void requestCancelWorkflowExecution(WorkflowExecution execution)
           
 void setDataConverter(DataConverter converter)
           
 void setDecisionContextProvider(DecisionContextProvider decisionContextProvider)
           
 void setWorkflowImplementationTypes(java.util.Collection<java.lang.Class<?>> workflowImplementationTypes)
           
 Promise<java.lang.Void> signalWorkflowExecution(SignalExternalWorkflowParameters signalParameters)
           
 Promise<StartChildWorkflowReply> startChildWorkflow(StartChildWorkflowExecutionParameters parameters)
          Start child workflow.
 Promise<java.lang.String> startChildWorkflow(java.lang.String workflow, java.lang.String version, Promise<java.lang.String> input)
           
 Promise<java.lang.String> startChildWorkflow(java.lang.String workflow, java.lang.String version, java.lang.String input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestPOJOWorkflowImplementationGenericWorkflowClient

public TestPOJOWorkflowImplementationGenericWorkflowClient()
Method Detail

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<java.lang.String> startChildWorkflow(java.lang.String workflow,
                                                    java.lang.String version,
                                                    java.lang.String input)
Specified by:
startChildWorkflow in interface GenericWorkflowClient

startChildWorkflow

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

signalWorkflowExecution

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

requestCancelWorkflowExecution

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

getWorkflowState

public java.lang.String getWorkflowState(WorkflowExecution execution)
                                  throws WorkflowException
Throws:
WorkflowException

continueAsNewOnCompletion

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

generateUniqueId

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

Specified by:
generateUniqueId in interface GenericWorkflowClient

setDataConverter

public void setDataConverter(DataConverter converter)

getWorkflowTypesToRegister

public java.lang.Iterable<WorkflowType> getWorkflowTypesToRegister()

addWorkflowImplementationType

public void addWorkflowImplementationType(java.lang.Class<?> workflowImplementationType)
                                   throws java.lang.InstantiationException,
                                          java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

addWorkflowImplementationType

public void addWorkflowImplementationType(java.lang.Class<?> workflowImplementationType,
                                          DataConverter converterOverride)
                                   throws java.lang.InstantiationException,
                                          java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

setWorkflowImplementationTypes

public void setWorkflowImplementationTypes(java.util.Collection<java.lang.Class<?>> workflowImplementationTypes)
                                    throws java.lang.InstantiationException,
                                           java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.