public interface ActivityStub
Workflow.newActivityStub(Class)
.Modifier and Type | Method and Description |
---|---|
<R> R |
execute(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.Object... args)
Executes an activity by its type name and arguments.
|
<R> R |
execute(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object... args)
Executes an activity by its type name and arguments.
|
<R> Promise<R> |
executeAsync(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.Object... args)
Executes an activity asynchronously by its type name and arguments.
|
<R> Promise<R> |
executeAsync(java.lang.String activityName,
java.lang.Class<R> resultClass,
java.lang.reflect.Type resultType,
java.lang.Object... args)
Executes an activity asynchronously by its type name and arguments.
|
<R> R execute(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.Object... args)
R
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return type of the activity. Use Void.class for activities that
return void type.args
- arguments of the activity.<R> R execute(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
R
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return class of the activity. Use Void.class for activities
that return void type.resultType
- the expected return type of the activity. Differs from resultClass for
generic types.args
- arguments of the activity.<R> Promise<R> executeAsync(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.Object... args)
R
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return type of the activity. Use Void.class for activities that
return void type.args
- arguments of the activity.<R> Promise<R> executeAsync(java.lang.String activityName, java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
R
- return type.activityName
- name of an activity type to execute.resultClass
- the expected return class of the activity. Use Void.class for activities
that return void type.resultType
- the expected return type of the activity. Differs from resultClass for
generic types.args
- arguments of the activity.