public abstract class ActivityImplementation extends Object
ActivityImplementationBase
instead of ActivityImplementation
is recommended.ActivityWorker
,
ActivityImplementationBase
Constructor and Description |
---|
ActivityImplementation() |
Modifier and Type | Method and Description |
---|---|
abstract String |
execute(ActivityExecutionContext context)
Execute external activity or initiate its execution if
#isManualActivityCompletion() is true . |
abstract ActivityTypeExecutionOptions |
getExecutionOptions() |
abstract ActivityTypeRegistrationOptions |
getRegistrationOptions()
|
public abstract ActivityTypeRegistrationOptions getRegistrationOptions()
AmazonSimpleWorkflow.registerActivityType(com.amazonaws.services.simpleworkflow.model.RegisterActivityTypeRequest)
call.public abstract ActivityTypeExecutionOptions getExecutionOptions()
public abstract String execute(ActivityExecutionContext context) throws ActivityFailureException, CancellationException
#isManualActivityCompletion()
is true
.task
- information about activity to be executed. Use
ActivityTask.getInput()
to get activity input
arguments.#isManualActivityCompletion()
is set
to false. Use
ActivityWorker#respondActivityTaskCompleted(String, Map)
to return result in asynchronous case.ActivityFailureException
CancellationException