Skip to content

/AWS1/IF_BDK=>GETAUTOMATEDRSNINGPLYANNOT00()

About GetAutomatedReasoningPolicyAnnotations

Retrieves the current annotations for an Automated Reasoning policy build workflow. Annotations contain corrections to the rules, variables and types to be applied to the policy.

Method Signature

IMPORTING

Required arguments:

iv_policyarn TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN /AWS1/BDKAUTOMATEDRSNINGPLYARN

The Amazon Resource Name (ARN) of the Automated Reasoning policy whose annotations you want to retrieve.

iv_buildworkflowid TYPE /AWS1/BDKAUTOMATEDRSNINGPLYB00 /AWS1/BDKAUTOMATEDRSNINGPLYB00

The unique identifier of the build workflow whose annotations you want to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdkgetautomatedrsni01 /AWS1/CL_BDKGETAUTOMATEDRSNI01

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_bdk~getautomatedrsningplyannot00(
  iv_buildworkflowid = |string|
  iv_policyarn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_automatedreasoningpolic = lo_result->get_policyarn( ).
  lv_automatedreasoningpolic_1 = lo_result->get_name( ).
  lv_automatedreasoningpolic_2 = lo_result->get_buildworkflowid( ).
  LOOP AT lo_result->get_annotations( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_automatedreasoningpolic_3 = lo_row_1->get_addtype( ).
      IF lo_automatedreasoningpolic_3 IS NOT INITIAL.
        lv_automatedreasoningpolic_4 = lo_automatedreasoningpolic_3->get_name( ).
        lv_automatedreasoningpolic_5 = lo_automatedreasoningpolic_3->get_description( ).
        LOOP AT lo_automatedreasoningpolic_3->get_values( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_automatedreasoningpolic_6 = lo_row_3->get_value( ).
            lv_automatedreasoningpolic_7 = lo_row_3->get_description( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_automatedreasoningpolic_8 = lo_row_1->get_updatetype( ).
      IF lo_automatedreasoningpolic_8 IS NOT INITIAL.
        lv_automatedreasoningpolic_4 = lo_automatedreasoningpolic_8->get_name( ).
        lv_automatedreasoningpolic_4 = lo_automatedreasoningpolic_8->get_newname( ).
        lv_automatedreasoningpolic_5 = lo_automatedreasoningpolic_8->get_description( ).
        LOOP AT lo_automatedreasoningpolic_8->get_values( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lo_automatedreasoningpolic_9 = lo_row_5->get_addtypevalue( ).
            IF lo_automatedreasoningpolic_9 IS NOT INITIAL.
              lv_automatedreasoningpolic_6 = lo_automatedreasoningpolic_9->get_value( ).
              lv_automatedreasoningpolic_7 = lo_automatedreasoningpolic_9->get_description( ).
            ENDIF.
            lo_automatedreasoningpolic_10 = lo_row_5->get_updatetypevalue( ).
            IF lo_automatedreasoningpolic_10 IS NOT INITIAL.
              lv_automatedreasoningpolic_6 = lo_automatedreasoningpolic_10->get_value( ).
              lv_automatedreasoningpolic_6 = lo_automatedreasoningpolic_10->get_newvalue( ).
              lv_automatedreasoningpolic_7 = lo_automatedreasoningpolic_10->get_description( ).
            ENDIF.
            lo_automatedreasoningpolic_11 = lo_row_5->get_deletetypevalue( ).
            IF lo_automatedreasoningpolic_11 IS NOT INITIAL.
              lv_automatedreasoningpolic_6 = lo_automatedreasoningpolic_11->get_value( ).
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_automatedreasoningpolic_12 = lo_row_1->get_deletetype( ).
      IF lo_automatedreasoningpolic_12 IS NOT INITIAL.
        lv_automatedreasoningpolic_4 = lo_automatedreasoningpolic_12->get_name( ).
      ENDIF.
      lo_automatedreasoningpolic_13 = lo_row_1->get_addvariable( ).
      IF lo_automatedreasoningpolic_13 IS NOT INITIAL.
        lv_automatedreasoningpolic_14 = lo_automatedreasoningpolic_13->get_name( ).
        lv_automatedreasoningpolic_4 = lo_automatedreasoningpolic_13->get_type( ).
        lv_automatedreasoningpolic_15 = lo_automatedreasoningpolic_13->get_description( ).
      ENDIF.
      lo_automatedreasoningpolic_16 = lo_row_1->get_updatevariable( ).
      IF lo_automatedreasoningpolic_16 IS NOT INITIAL.
        lv_automatedreasoningpolic_14 = lo_automatedreasoningpolic_16->get_name( ).
        lv_automatedreasoningpolic_14 = lo_automatedreasoningpolic_16->get_newname( ).
        lv_automatedreasoningpolic_15 = lo_automatedreasoningpolic_16->get_description( ).
      ENDIF.
      lo_automatedreasoningpolic_17 = lo_row_1->get_deletevariable( ).
      IF lo_automatedreasoningpolic_17 IS NOT INITIAL.
        lv_automatedreasoningpolic_14 = lo_automatedreasoningpolic_17->get_name( ).
      ENDIF.
      lo_automatedreasoningpolic_18 = lo_row_1->get_addrule( ).
      IF lo_automatedreasoningpolic_18 IS NOT INITIAL.
        lv_automatedreasoningpolic_19 = lo_automatedreasoningpolic_18->get_expression( ).
      ENDIF.
      lo_automatedreasoningpolic_20 = lo_row_1->get_updaterule( ).
      IF lo_automatedreasoningpolic_20 IS NOT INITIAL.
        lv_automatedreasoningpolic_21 = lo_automatedreasoningpolic_20->get_ruleid( ).
        lv_automatedreasoningpolic_19 = lo_automatedreasoningpolic_20->get_expression( ).
      ENDIF.
      lo_automatedreasoningpolic_22 = lo_row_1->get_deleterule( ).
      IF lo_automatedreasoningpolic_22 IS NOT INITIAL.
        lv_automatedreasoningpolic_21 = lo_automatedreasoningpolic_22->get_ruleid( ).
      ENDIF.
      lo_automatedreasoningpolic_23 = lo_row_1->get_addrlfromnaturallanguage( ).
      IF lo_automatedreasoningpolic_23 IS NOT INITIAL.
        lv_automatedreasoningpolic_24 = lo_automatedreasoningpolic_23->get_naturallanguage( ).
      ENDIF.
      lo_automatedreasoningpolic_25 = lo_row_1->get_updatefromrulesfeedback( ).
      IF lo_automatedreasoningpolic_25 IS NOT INITIAL.
        LOOP AT lo_automatedreasoningpolic_25->get_ruleids( ) into lo_row_6.
          lo_row_7 = lo_row_6.
          IF lo_row_7 IS NOT INITIAL.
            lv_automatedreasoningpolic_21 = lo_row_7->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_automatedreasoningpolic_26 = lo_automatedreasoningpolic_25->get_feedback( ).
      ENDIF.
      lo_automatedreasoningpolic_27 = lo_row_1->get_updfromscenariofeedback( ).
      IF lo_automatedreasoningpolic_27 IS NOT INITIAL.
        LOOP AT lo_automatedreasoningpolic_27->get_ruleids( ) into lo_row_6.
          lo_row_7 = lo_row_6.
          IF lo_row_7 IS NOT INITIAL.
            lv_automatedreasoningpolic_21 = lo_row_7->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_automatedreasoningpolic_28 = lo_automatedreasoningpolic_27->get_scenarioexpression( ).
        lv_automatedreasoningpolic_26 = lo_automatedreasoningpolic_27->get_feedback( ).
      ENDIF.
      lo_automatedreasoningpolic_29 = lo_row_1->get_ingestcontent( ).
      IF lo_automatedreasoningpolic_29 IS NOT INITIAL.
        lv_automatedreasoningpolic_30 = lo_automatedreasoningpolic_29->get_content( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
  lv_automatedreasoningpolic_31 = lo_result->get_annotationsethash( ).
  lv_timestamp = lo_result->get_updatedat( ).
ENDIF.