/AWS1/IF_TRN=>SENDWORKFLOWSTEPSTATE()¶
About SendWorkflowStepState¶
Sends a callback for asynchronous custom steps.
The ExecutionId, WorkflowId, and Token are passed to the target resource during execution of a custom step of a workflow. You must include those with their callback as well as providing a status.
Method Signature¶
METHODS /AWS1/IF_TRN~SENDWORKFLOWSTEPSTATE
IMPORTING
!IV_WORKFLOWID TYPE /AWS1/TRNWORKFLOWID OPTIONAL
!IV_EXECUTIONID TYPE /AWS1/TRNEXECUTIONID OPTIONAL
!IV_TOKEN TYPE /AWS1/TRNCALLBACKTOKEN OPTIONAL
!IV_STATUS TYPE /AWS1/TRNCUSTOMSTEPSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trnsendworkflowstep01
RAISING
/AWS1/CX_TRNACCESSDENIEDEX
/AWS1/CX_TRNINTERNALSVCERROR
/AWS1/CX_TRNINVALIDREQUESTEX
/AWS1/CX_TRNRESOURCENOTFOUNDEX
/AWS1/CX_TRNSERVICEUNAVAILEX
/AWS1/CX_TRNTHROTTLINGEX
/AWS1/CX_TRNCLIENTEXC
/AWS1/CX_TRNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workflowid TYPE /AWS1/TRNWORKFLOWID /AWS1/TRNWORKFLOWID¶
A unique identifier for the workflow.
iv_executionid TYPE /AWS1/TRNEXECUTIONID /AWS1/TRNEXECUTIONID¶
A unique identifier for the execution of a workflow.
iv_token TYPE /AWS1/TRNCALLBACKTOKEN /AWS1/TRNCALLBACKTOKEN¶
Used to distinguish between multiple callbacks for multiple Lambda steps within the same execution.
iv_status TYPE /AWS1/TRNCUSTOMSTEPSTATUS /AWS1/TRNCUSTOMSTEPSTATUS¶
Indicates whether the specified step succeeded or failed.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trnsendworkflowstep01 /AWS1/CL_TRNSENDWORKFLOWSTEP01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->sendworkflowstepstate(
iv_executionid = |string|
iv_status = |string|
iv_token = |string|
iv_workflowid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.