public class TestGenericActivityClient extends Object implements GenericActivityClient
Constructor and Description |
---|
TestGenericActivityClient() |
TestGenericActivityClient(DecisionContextProvider decisionContextProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addFactory(String taskListToListen,
ActivityImplementationFactory factory) |
Promise<String> |
scheduleActivityTask(ExecuteActivityParameters parameters)
Used to dynamically schedule an activity for execution
|
Promise<String> |
scheduleActivityTask(String activity,
String version,
Promise<String> input)
Used to dynamically schedule an activity using its name
|
Promise<String> |
scheduleActivityTask(String activity,
String version,
String input)
Used to dynamically schedule an activity for execution
|
public TestGenericActivityClient(DecisionContextProvider decisionContextProvider)
public TestGenericActivityClient()
public void addFactory(String taskListToListen, ActivityImplementationFactory factory)
public Promise<String> scheduleActivityTask(ExecuteActivityParameters parameters)
GenericActivityClient
scheduleActivityTask
in interface GenericActivityClient
parameters
- An object which encapsulates all the information required to
schedule an activity for executionpublic Promise<String> scheduleActivityTask(String activity, String version, String input)
GenericActivityClient
scheduleActivityTask
in interface GenericActivityClient
activity
- Name of activityinput
- A map of all input parameters to that activitypublic Promise<String> scheduleActivityTask(String activity, String version, Promise<String> input)
GenericActivityClient
scheduleActivityTask
in interface GenericActivityClient
activity
- name of activity to scheduleinput
- a Value containing a map of all input parameters to that
activity