Skip to content

/AWS1/CL_PIP=>LISTACTIONEXECUTIONS()

About ListActionExecutions

Lists the action executions that have occurred in a pipeline.

Method Signature

IMPORTING

Required arguments:

iv_pipelinename TYPE /AWS1/PIPPIPELINENAME /AWS1/PIPPIPELINENAME

The name of the pipeline for which you want to list action execution history.

Optional arguments:

io_filter TYPE REF TO /AWS1/CL_PIPACTIONEXECFILTER /AWS1/CL_PIPACTIONEXECFILTER

Input information used to filter action execution history.

iv_maxresults TYPE /AWS1/PIPMAXRESULTS /AWS1/PIPMAXRESULTS

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Action execution history is retained for up to 12 months, based on action execution start times. Default value is 100.

iv_nexttoken TYPE /AWS1/PIPNEXTTOKEN /AWS1/PIPNEXTTOKEN

The token that was returned from the previous ListActionExecutions call, which can be used to return the next set of action executions in the list.

RETURNING

oo_output TYPE REF TO /aws1/cl_piplistactionexecsout /AWS1/CL_PIPLISTACTIONEXECSOUT

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->/aws1/if_pip~listactionexecutions(
  io_filter = new /aws1/cl_pipactionexecfilter(
    io_latestinpipelineexecution = new /aws1/cl_piplatestinplexefilt(
      iv_pipelineexecutionid = |string|
      iv_starttimerange = |string|
    )
    iv_pipelineexecutionid = |string|
  )
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_pipelinename = |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_actionexecutiondetails( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_pipelineexecutionid = lo_row_1->get_pipelineexecutionid( ).
      lv_actionexecutionid = lo_row_1->get_actionexecutionid( ).
      lv_pipelineversion = lo_row_1->get_pipelineversion( ).
      lv_stagename = lo_row_1->get_stagename( ).
      lv_actionname = lo_row_1->get_actionname( ).
      lv_timestamp = lo_row_1->get_starttime( ).
      lv_timestamp = lo_row_1->get_lastupdatetime( ).
      lv_lastupdatedby = lo_row_1->get_updatedby( ).
      lv_actionexecutionstatus = lo_row_1->get_status( ).
      lo_actionexecutioninput = lo_row_1->get_input( ).
      IF lo_actionexecutioninput IS NOT INITIAL.
        lo_actiontypeid = lo_actionexecutioninput->get_actiontypeid( ).
        IF lo_actiontypeid IS NOT INITIAL.
          lv_actioncategory = lo_actiontypeid->get_category( ).
          lv_actionowner = lo_actiontypeid->get_owner( ).
          lv_actionprovider = lo_actiontypeid->get_provider( ).
          lv_version = lo_actiontypeid->get_version( ).
        ENDIF.
        LOOP AT lo_actionexecutioninput->get_configuration( ) into ls_row_2.
          lv_key = ls_row_2-key.
          lo_value = ls_row_2-value.
          IF lo_value IS NOT INITIAL.
            lv_actionconfigurationvalu = lo_value->get_value( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_actionexecutioninput->get_resolvedconfiguration( ) into ls_row_3.
          lv_key_1 = ls_row_3-key.
          lo_value_1 = ls_row_3-value.
          IF lo_value_1 IS NOT INITIAL.
            lv_string = lo_value_1->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_rolearn = lo_actionexecutioninput->get_rolearn( ).
        lv_awsregionname = lo_actionexecutioninput->get_region( ).
        LOOP AT lo_actionexecutioninput->get_inputartifacts( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_artifactname = lo_row_5->get_name( ).
            lo_s3location = lo_row_5->get_s3location( ).
            IF lo_s3location IS NOT INITIAL.
              lv_s3bucket = lo_s3location->get_bucket( ).
              lv_s3key = lo_s3location->get_key( ).
            ENDIF.
          ENDIF.
        ENDLOOP.
        lv_actionnamespace = lo_actionexecutioninput->get_namespace( ).
      ENDIF.
      lo_actionexecutionoutput = lo_row_1->get_output( ).
      IF lo_actionexecutionoutput IS NOT INITIAL.
        LOOP AT lo_actionexecutionoutput->get_outputartifacts( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_artifactname = lo_row_5->get_name( ).
            lo_s3location = lo_row_5->get_s3location( ).
            IF lo_s3location IS NOT INITIAL.
              lv_s3bucket = lo_s3location->get_bucket( ).
              lv_s3key = lo_s3location->get_key( ).
            ENDIF.
          ENDIF.
        ENDLOOP.
        lo_actionexecutionresult = lo_actionexecutionoutput->get_executionresult( ).
        IF lo_actionexecutionresult IS NOT INITIAL.
          lv_externalexecutionid = lo_actionexecutionresult->get_externalexecutionid( ).
          lv_externalexecutionsummar = lo_actionexecutionresult->get_externalexecutionsummary( ).
          lv_url = lo_actionexecutionresult->get_externalexecutionurl( ).
          lo_errordetails = lo_actionexecutionresult->get_errordetails( ).
          IF lo_errordetails IS NOT INITIAL.
            lv_code = lo_errordetails->get_code( ).
            lv_message = lo_errordetails->get_message( ).
          ENDIF.
          lv_logstreamarn = lo_actionexecutionresult->get_logstreamarn( ).
        ENDIF.
        LOOP AT lo_actionexecutionoutput->get_outputvariables( ) into ls_row_6.
          lv_key_2 = ls_row_6-key.
          lo_value_2 = ls_row_6-value.
          IF lo_value_2 IS NOT INITIAL.
            lv_outputvariablesvalue = lo_value_2->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.