/AWS1/CL_PIP=>LISTRULEEXECUTIONS()
¶
About ListRuleExecutions¶
Lists the rule executions that have occurred in a pipeline configured for conditions with rules.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_pipelinename
TYPE /AWS1/PIPPIPELINENAME
/AWS1/PIPPIPELINENAME
¶
The name of the pipeline for which you want to get execution summary information.
Optional arguments:¶
io_filter
TYPE REF TO /AWS1/CL_PIPRULEEXECFILTER
/AWS1/CL_PIPRULEEXECFILTER
¶
Input information used to filter rule 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. Pipeline history is limited to the most recent 12 months, based on pipeline execution start times. Default value is 100.
iv_nexttoken
TYPE /AWS1/PIPNEXTTOKEN
/AWS1/PIPNEXTTOKEN
¶
The token that was returned from the previous
ListRuleExecutions
call, which can be used to return the next set of rule executions in the list.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_piplistruleexecsout
/AWS1/CL_PIPLISTRULEEXECSOUT
¶
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~listruleexecutions(
io_filter = new /aws1/cl_pipruleexecfilter(
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_ruleexecutiondetails( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_pipelineexecutionid = lo_row_1->get_pipelineexecutionid( ).
lv_ruleexecutionid = lo_row_1->get_ruleexecutionid( ).
lv_pipelineversion = lo_row_1->get_pipelineversion( ).
lv_stagename = lo_row_1->get_stagename( ).
lv_rulename = lo_row_1->get_rulename( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_lastupdatetime( ).
lv_lastupdatedby = lo_row_1->get_updatedby( ).
lv_ruleexecutionstatus = lo_row_1->get_status( ).
lo_ruleexecutioninput = lo_row_1->get_input( ).
IF lo_ruleexecutioninput IS NOT INITIAL.
lo_ruletypeid = lo_ruleexecutioninput->get_ruletypeid( ).
IF lo_ruletypeid IS NOT INITIAL.
lv_rulecategory = lo_ruletypeid->get_category( ).
lv_ruleowner = lo_ruletypeid->get_owner( ).
lv_ruleprovider = lo_ruletypeid->get_provider( ).
lv_version = lo_ruletypeid->get_version( ).
ENDIF.
LOOP AT lo_ruleexecutioninput->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_ruleconfigurationvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_ruleexecutioninput->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_ruleexecutioninput->get_rolearn( ).
lv_awsregionname = lo_ruleexecutioninput->get_region( ).
LOOP AT lo_ruleexecutioninput->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.
ENDIF.
lo_ruleexecutionoutput = lo_row_1->get_output( ).
IF lo_ruleexecutionoutput IS NOT INITIAL.
lo_ruleexecutionresult = lo_ruleexecutionoutput->get_executionresult( ).
IF lo_ruleexecutionresult IS NOT INITIAL.
lv_externalexecutionid = lo_ruleexecutionresult->get_externalexecutionid( ).
lv_externalexecutionsummar = lo_ruleexecutionresult->get_externalexecutionsummary( ).
lv_url = lo_ruleexecutionresult->get_externalexecutionurl( ).
lo_errordetails = lo_ruleexecutionresult->get_errordetails( ).
IF lo_errordetails IS NOT INITIAL.
lv_code = lo_errordetails->get_code( ).
lv_message = lo_errordetails->get_message( ).
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.