/AWS1/IF_MWS=>LISTTASKINSTANCES()¶
About ListTaskInstances¶
Lists all task instances for a specific workflow run, with optional pagination support.
Method Signature¶
METHODS /AWS1/IF_MWS~LISTTASKINSTANCES
IMPORTING
!IV_WORKFLOWARN TYPE /AWS1/MWSWORKFLOWARN OPTIONAL
!IV_RUNID TYPE /AWS1/MWSIDSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/MWSINTEGER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/MWSSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mwslisttaskinstsrsp
RAISING
/AWS1/CX_MWSACCESSDENIEDEX
/AWS1/CX_MWSINTERNALSERVEREX
/AWS1/CX_MWSOPERATIONTIMEOUTEX
/AWS1/CX_MWSTHROTTLINGEX
/AWS1/CX_MWSVALIDATIONEX
/AWS1/CX_MWSCLIENTEXC
/AWS1/CX_MWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workflowarn TYPE /AWS1/MWSWORKFLOWARN /AWS1/MWSWORKFLOWARN¶
The Amazon Resource Name (ARN) of the workflow that contains the run.
iv_runid TYPE /AWS1/MWSIDSTRING /AWS1/MWSIDSTRING¶
The unique identifier of the workflow run for which you want a list of task instances.
Optional arguments:¶
iv_maxresults TYPE /AWS1/MWSINTEGER /AWS1/MWSINTEGER¶
The maximum number of task instances to return in a single response.
iv_nexttoken TYPE /AWS1/MWSSTRING /AWS1/MWSSTRING¶
The pagination token you need to use to retrieve the next set of results. This value is returned from a previous call to
ListTaskInstances.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mwslisttaskinstsrsp /AWS1/CL_MWSLISTTASKINSTSRSP¶
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->listtaskinstances(
iv_maxresults = 123
iv_nexttoken = |string|
iv_runid = |string|
iv_workflowarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_taskinstances( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_workflowarn = lo_row_1->get_workflowarn( ).
lv_versionid = lo_row_1->get_workflowversion( ).
lv_idstring = lo_row_1->get_runid( ).
lv_idstring = lo_row_1->get_taskinstanceid( ).
lv_taskinstancestatus = lo_row_1->get_status( ).
lv_integer = lo_row_1->get_durationinseconds( ).
lv_genericstring = lo_row_1->get_operatorname( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.