public interface JitterbitActivity extends Discoverable
An activity includes both:
To register an activity as part of a connector, annotate the activity
implementation with Activity
.
During the runtime, the workflow process will invoke the activity by invoking
the execute(ExecutionContext)
method.
The execution context contains information about the request (if present) and
the payload. The activity is responsible for setting the response payload (using
JitterbitActivity.ExecutionContext.getResponsePayload()
, which will be handed to the next
activity within the workflow chain of operations by the process operation engine.
Modifier and Type | Interface and Description |
---|---|
static class |
JitterbitActivity.ActivityStatus |
static interface |
JitterbitActivity.ExecutionContext
The context in which an activity is executed.
|
static interface |
JitterbitActivity.Factory
A factory that creates an instance of a
JitterbitActivity . |
static class |
JitterbitActivity.LifecycleOperation
The possible stages of the lifecycle of an operation.
|
static class |
JitterbitActivity.State
The possible states of an activity.
|
static class |
JitterbitActivity.Status |
Discoverable.DiscoverContextRequest<T>, Discoverable.DiscoveryException
Modifier and Type | Method and Description |
---|---|
void |
execute(JitterbitActivity.ExecutionContext context)
Executes an activity.
|
String |
getName()
Returns the name of the activity, unique within the context of the connector.
|
void |
onDeploy(DeployedEntity deployedEntity)
Invoked when an activity receives a deploy event request.
|
void |
onStart()
Invoked when an activity receives a start event request.
|
void |
onStop()
Invoked when an activity receives a stop event request.
|
void |
onUnDeploy(DeployedEntity deployedEntity)
Invoked when an activity receives an undeploy event request.
|
JitterbitActivity.State |
state()
Returns the state of this activity.
|
getActivityRequestResponseMetadata, getObjectList, getObjectSchema, invokeAction
String getName()
void execute(JitterbitActivity.ExecutionContext context) throws ActivityExecutionException
JitterbitActivity.ExecutionContext
contains the configuration
parameters associated with the activity and the activity response that needs to
be returned as part of JitterbitActivity.ExecutionContext.getResponsePayload()
.context
- the execution contextActivityExecutionException
- if there is an exception during execution of the activityvoid onStart() throws LifecycleActivityException
LifecycleActivityException
- if there is an exception during executionvoid onStop() throws LifecycleActivityException
LifecycleActivityException
- if there is an exception during executionvoid onDeploy(DeployedEntity deployedEntity) throws LifecycleActivityException
deployedEntity
- the deployed entityLifecycleActivityException
- if there is an exception during executionvoid onUnDeploy(DeployedEntity deployedEntity) throws LifecycleActivityException
deployedEntity
- the deployed entityLifecycleActivityException
- if there is an exception during executionJitterbitActivity.State state()
Copyright © Jitterbit, Inc. Licensed under the Jitterbit Master Subscription Agreement.