Invoke Activity for Rest Reference
Invoke activity is an asynchronous activity that calls an operation of a REST service through REST Reference Binding.
General
The General tab has the following fields
Field | Description |
---|---|
Name | The name to be displayed as the label for the activity in the process. |
Service | Select the service for which to specify an operation. |
Description
Provide a short description for the invoke activity
Advanced
The Advanced tab has the following field
Input item | Literal Value/Module Property | Description |
---|---|---|
Activity Timeout (seconds) | Yes | The
Invoke activity timeout in seconds. You can either select a preset timeout (Default Timeout, 30, 60,or 120 seconds) or specify a custom timeout in seconds.
Important: If the Invoke activity is configured to be
Default Timeout, then the timeout value equates to "3" minutes by default. However this default value (3 minutes) can be modified to be a different value by setting the property
bw.engine.activity.async.waitTime in
BW_JAVA_OPTS environment variable. The value for the property should be specified in milliseconds.
For example: -Dbw.engine.activity.async.waitTime=<timeout in milliseconds> Note: When the
Invoke activity timeouts, the in-line subprocess instance called by the
Invoke activity can be cancelled before the subprocess instance completes. Hence, the business logic in the cancelled process instance may not be executed to its entirety.
|
Input
The following is the input for the activity
Input Item | Datatype | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
operationRequest | simple or complex | This input item has the primitive data type or XSD element defined for the operation. If the operation is configured with Form Parameters, it is reflected here. | ||||||||||||
httpHeaders | complex | The HTTP Headers that are a part of the REST request. The header structure is defined by the HTTP protocol.
For more information about the fields and content of the header, see the W3C HTTP specification at w3.org.
|
||||||||||||
dynamicConfigurations | complex |
Specifies the values to override the binding configuration values
|
||||||||||||
parameters | complex | This element contains the Path and Query parameters configured on the operation. |
Output
The following is the output of the activity
Output Item | Datatype | Description |
---|---|---|
OperationResponse | simple or complex | This field shows the response schema element for the operation. |
httpResponseHeaders | complex |
This field contains the standard HTTP Response Headers along with the Response Header parameters if configured for the operation. It is only visible when the operation is configured with HTTP Response Header Parameter. |
Fault
The Fault tab lists the possible exceptions generated by this activity.
Fault | Generated When.. |
---|---|
ActivityTimedOutException | A timeout has been reached. |
clientFault | The Rest Service responds with a message containing the 4XX status code. |
serverFault | The Rest Service responds with a message containing the 5XX status code. |