com.amazonaws.services.simpleworkflow.flow.test
Class TestGenericActivityClient
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.test.TestGenericActivityClient
- All Implemented Interfaces:
- GenericActivityClient
public class TestGenericActivityClient
- extends Object
- implements GenericActivityClient
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factories
protected final Map<String,ActivityImplementationFactory> factories
- Key is TaskList
registrationOptions
protected final Map<ActivityType,ActivityTypeRegistrationOptions> registrationOptions
workerTaskLists
protected final Map<ActivityType,String> workerTaskLists
decisionContextProvider
protected final DecisionContextProvider decisionContextProvider
TestGenericActivityClient
public TestGenericActivityClient(DecisionContextProvider decisionContextProvider)
TestGenericActivityClient
public TestGenericActivityClient()
addFactory
public void addFactory(String taskListToListen,
ActivityImplementationFactory factory)
scheduleActivityTask
public Promise<String> scheduleActivityTask(ExecuteActivityParameters parameters)
- Description copied from interface:
GenericActivityClient
- Used to dynamically schedule an activity for execution
- Specified by:
scheduleActivityTask
in interface GenericActivityClient
- Parameters:
parameters
- An object which encapsulates all the information required to
schedule an activity for execution
- Returns:
- Promise to the result returned by the activity
scheduleActivityTask
public Promise<String> scheduleActivityTask(String activity,
String version,
String input)
- Description copied from interface:
GenericActivityClient
- Used to dynamically schedule an activity for execution
- Specified by:
scheduleActivityTask
in interface GenericActivityClient
- Parameters:
activity
- Name of activityinput
- A map of all input parameters to that activity
- Returns:
- Promise to a result returned by the activity
scheduleActivityTask
public Promise<String> scheduleActivityTask(String activity,
String version,
Promise<String> input)
- Description copied from interface:
GenericActivityClient
- Used to dynamically schedule an activity using its name
- Specified by:
scheduleActivityTask
in interface GenericActivityClient
- Parameters:
activity
- name of activity to scheduleinput
- a Value containing a map of all input parameters to that
activity
- Returns:
- a Value which contains a Map of results returned by the activity
Copyright © 2016. All rights reserved.