Skip to content

/AWS1/IF_PIP=>GETPIPELINEEXECUTION()

About GetPipelineExecution

Returns information about an execution of a pipeline, including details about artifacts, the pipeline execution ID, and the name, version, and status of the pipeline.

Method Signature

IMPORTING

Required arguments:

iv_pipelinename TYPE /AWS1/PIPPIPELINENAME /AWS1/PIPPIPELINENAME

The name of the pipeline about which you want to get execution details.

iv_pipelineexecutionid TYPE /AWS1/PIPPIPELINEEXECUTIONID /AWS1/PIPPIPELINEEXECUTIONID

The ID of the pipeline execution about which you want to get execution details.

RETURNING

oo_output TYPE REF TO /aws1/cl_pipgetplinexecoutput /AWS1/CL_PIPGETPLINEXECOUTPUT

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~getpipelineexecution(
  iv_pipelineexecutionid = |string|
  iv_pipelinename = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_pipelineexecution = lo_result->get_pipelineexecution( ).
  IF lo_pipelineexecution IS NOT INITIAL.
    lv_pipelinename = lo_pipelineexecution->get_pipelinename( ).
    lv_pipelineversion = lo_pipelineexecution->get_pipelineversion( ).
    lv_pipelineexecutionid = lo_pipelineexecution->get_pipelineexecutionid( ).
    lv_pipelineexecutionstatus = lo_pipelineexecution->get_status( ).
    lv_pipelineexecutionstatus_1 = lo_pipelineexecution->get_statussummary( ).
    LOOP AT lo_pipelineexecution->get_artifactrevisions( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_artifactname = lo_row_1->get_name( ).
        lv_revision = lo_row_1->get_revisionid( ).
        lv_revisionchangeidentifie = lo_row_1->get_revisionchangeidentifier( ).
        lv_revisionsummary = lo_row_1->get_revisionsummary( ).
        lv_timestamp = lo_row_1->get_created( ).
        lv_url = lo_row_1->get_revisionurl( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_pipelineexecution->get_variables( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        lv_string = lo_row_3->get_name( ).
        lv_string = lo_row_3->get_resolvedvalue( ).
      ENDIF.
    ENDLOOP.
    lo_executiontrigger = lo_pipelineexecution->get_trigger( ).
    IF lo_executiontrigger IS NOT INITIAL.
      lv_triggertype = lo_executiontrigger->get_triggertype( ).
      lv_triggerdetail = lo_executiontrigger->get_triggerdetail( ).
    ENDIF.
    lv_executionmode = lo_pipelineexecution->get_executionmode( ).
    lv_executiontype = lo_pipelineexecution->get_executiontype( ).
    lo_pipelinerollbackmetadat = lo_pipelineexecution->get_rollbackmetadata( ).
    IF lo_pipelinerollbackmetadat IS NOT INITIAL.
      lv_pipelineexecutionid = lo_pipelinerollbackmetadat->get_rollbacktargetplinexecid( ).
    ENDIF.
  ENDIF.
ENDIF.