Skip to content

/AWS1/IF_MWS=>LISTWORKFLOWVERSIONS()

About ListWorkflowVersions

Lists all versions of a specified workflow, with optional pagination support.

Method Signature

METHODS /AWS1/IF_MWS~LISTWORKFLOWVERSIONS
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/MWSINTEGER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/MWSSTRING OPTIONAL
    !IV_WORKFLOWARN TYPE /AWS1/MWSWORKFLOWARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mwslstworkflowvrssrsp
  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 for which you want to list versions.

Optional arguments:

iv_maxresults TYPE /AWS1/MWSINTEGER /AWS1/MWSINTEGER

The maximum number of workflow versions 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 ListWorkflowVersions.

RETURNING

oo_output TYPE REF TO /aws1/cl_mwslstworkflowvrssrsp /AWS1/CL_MWSLSTWORKFLOWVRSSRSP

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->listworkflowversions(
  iv_maxresults = 123
  iv_nexttoken = |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_workflowversions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_workflowversion = lo_row_1->get_workflowversion( ).
      lv_workflowarn = lo_row_1->get_workflowarn( ).
      lv_islatestversion = lo_row_1->get_islatestversion( ).
      lv_timestampvalue = lo_row_1->get_createdat( ).
      lv_timestampvalue = lo_row_1->get_modifiedat( ).
      lo_definitions3location = lo_row_1->get_definitions3location( ).
      IF lo_definitions3location IS NOT INITIAL.
        lv_string = lo_definitions3location->get_bucket( ).
        lv_string = lo_definitions3location->get_objectkey( ).
        lv_string = lo_definitions3location->get_versionid( ).
      ENDIF.
      lo_scheduleconfiguration = lo_row_1->get_scheduleconfiguration( ).
      IF lo_scheduleconfiguration IS NOT INITIAL.
        lv_string = lo_scheduleconfiguration->get_cronexpression( ).
      ENDIF.
      lv_genericstring = lo_row_1->get_triggermode( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nexttoken( ).
ENDIF.