Skip to content

/AWS1/IF_ERN=>UPDATEMATCHINGWORKFLOW()

About UpdateMatchingWorkflow

Updates an existing matching workflow. The workflow must already exist for this operation to succeed.

For workflows where resolutionType is ML_MATCHING, incremental processing is not supported.

Method Signature

IMPORTING

Required arguments:

iv_workflowname TYPE /AWS1/ERNENTITYNAME /AWS1/ERNENTITYNAME

The name of the workflow to be retrieved.

it_inputsourceconfig TYPE /AWS1/CL_ERNINPUTSOURCE=>TT_INPUTSOURCECONFIG TT_INPUTSOURCECONFIG

A list of InputSource objects, which have the fields InputSourceARN and SchemaName.

it_outputsourceconfig TYPE /AWS1/CL_ERNOUTPUTSOURCE=>TT_OUTPUTSOURCECONFIG TT_OUTPUTSOURCECONFIG

A list of OutputSource objects, each of which contains fields outputS3Path, applyNormalization, KMSArn, and output.

io_resolutiontechniques TYPE REF TO /AWS1/CL_ERNRESOLUTIONTECHNI00 /AWS1/CL_ERNRESOLUTIONTECHNI00

An object which defines the resolutionType and the ruleBasedProperties.

iv_rolearn TYPE /AWS1/ERNSTRING /AWS1/ERNSTRING

The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.

Optional arguments:

iv_description TYPE /AWS1/ERNDESCRIPTION /AWS1/ERNDESCRIPTION

A description of the workflow.

io_incrementalrunconfig TYPE REF TO /AWS1/CL_ERNINCREMENTALRUNCFG /AWS1/CL_ERNINCREMENTALRUNCFG

Optional. An object that defines the incremental run type. This object contains only the incrementalRunType field, which appears as "Automatic" in the console.

For workflows where resolutionType is ML_MATCHING, incremental processing is not supported.

RETURNING

oo_output TYPE REF TO /aws1/cl_ernupmatchingworkfl01 /AWS1/CL_ERNUPMATCHINGWORKFL01

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_ern~updatematchingworkflow(
  io_incrementalrunconfig = new /aws1/cl_ernincrementalruncfg( |string| )
  io_resolutiontechniques = new /aws1/cl_ernresolutiontechni00(
    io_providerproperties = new /aws1/cl_ernproviderproperties(
      io_intermediatesourceconf = new /aws1/cl_ernintermediatesrcc00( |string| )
      io_providerconfiguration = /AWS1/CL_RT_DOCUMENT=>FROM_JSON_STR( |\{"foo":"this is a JSON object..."\}| )
      iv_providerservicearn = |string|
    )
    io_rulebasedproperties = new /aws1/cl_ernrulebasedprps(
      it_rules = VALUE /aws1/cl_ernrule=>tt_rulelist(
        (
          new /aws1/cl_ernrule(
            it_matchingkeys = VALUE /aws1/cl_ernmatchingkeys_w=>tt_matchingkeys(
              ( new /aws1/cl_ernmatchingkeys_w( |string| ) )
            )
            iv_rulename = |string|
          )
        )
      )
      iv_attributematchingmodel = |string|
      iv_matchpurpose = |string|
    )
    io_ruleconditionproperties = new /aws1/cl_ernruleconditionprops(
      it_rules = VALUE /aws1/cl_ernrulecondition=>tt_ruleconditionlist(
        (
          new /aws1/cl_ernrulecondition(
            iv_condition = |string|
            iv_rulename = |string|
          )
        )
      )
    )
    iv_resolutiontype = |string|
  )
  it_inputsourceconfig = VALUE /aws1/cl_erninputsource=>tt_inputsourceconfig(
    (
      new /aws1/cl_erninputsource(
        iv_applynormalization = ABAP_TRUE
        iv_inputsourcearn = |string|
        iv_schemaname = |string|
      )
    )
  )
  it_outputsourceconfig = VALUE /aws1/cl_ernoutputsource=>tt_outputsourceconfig(
    (
      new /aws1/cl_ernoutputsource(
        it_output = VALUE /aws1/cl_ernoutputattribute=>tt_outputattributes(
          (
            new /aws1/cl_ernoutputattribute(
              iv_hashed = ABAP_TRUE
              iv_name = |string|
            )
          )
        )
        iv_applynormalization = ABAP_TRUE
        iv_kmsarn = |string|
        iv_outputs3path = |string|
      )
    )
  )
  iv_description = |string|
  iv_rolearn = |string|
  iv_workflowname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_entityname = lo_result->get_workflowname( ).
  lv_description = lo_result->get_description( ).
  LOOP AT lo_result->get_inputsourceconfig( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_inputsourcearn( ).
      lv_entityname = lo_row_1->get_schemaname( ).
      lv_boolean = lo_row_1->get_applynormalization( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_outputsourceconfig( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lv_s3path = lo_row_3->get_outputs3path( ).
      lv_kmsarn = lo_row_3->get_kmsarn( ).
      LOOP AT lo_row_3->get_output( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_attributename = lo_row_5->get_name( ).
          lv_boolean = lo_row_5->get_hashed( ).
        ENDIF.
      ENDLOOP.
      lv_boolean = lo_row_3->get_applynormalization( ).
    ENDIF.
  ENDLOOP.
  lo_resolutiontechniques = lo_result->get_resolutiontechniques( ).
  IF lo_resolutiontechniques IS NOT INITIAL.
    lv_resolutiontype = lo_resolutiontechniques->get_resolutiontype( ).
    lo_rulebasedproperties = lo_resolutiontechniques->get_rulebasedproperties( ).
    IF lo_rulebasedproperties IS NOT INITIAL.
      LOOP AT lo_rulebasedproperties->get_rules( ) into lo_row_6.
        lo_row_7 = lo_row_6.
        IF lo_row_7 IS NOT INITIAL.
          lv_string = lo_row_7->get_rulename( ).
          LOOP AT lo_row_7->get_matchingkeys( ) into lo_row_8.
            lo_row_9 = lo_row_8.
            IF lo_row_9 IS NOT INITIAL.
              lv_attributename = lo_row_9->get_value( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      lv_attributematchingmodel = lo_rulebasedproperties->get_attributematchingmodel( ).
      lv_matchpurpose = lo_rulebasedproperties->get_matchpurpose( ).
    ENDIF.
    lo_ruleconditionproperties = lo_resolutiontechniques->get_ruleconditionproperties( ).
    IF lo_ruleconditionproperties IS NOT INITIAL.
      LOOP AT lo_ruleconditionproperties->get_rules( ) into lo_row_10.
        lo_row_11 = lo_row_10.
        IF lo_row_11 IS NOT INITIAL.
          lv_string = lo_row_11->get_rulename( ).
          lv_string = lo_row_11->get_condition( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
    lo_providerproperties = lo_resolutiontechniques->get_providerproperties( ).
    IF lo_providerproperties IS NOT INITIAL.
      lv_providerservicearn = lo_providerproperties->get_providerservicearn( ).
      lo_value = lo_providerproperties->get_providerconfiguration( ).
      IF lo_value IS NOT INITIAL.
      ENDIF.
      lo_intermediatesourceconfi = lo_providerproperties->get_intermediatesourceconf( ).
      IF lo_intermediatesourceconfi IS NOT INITIAL.
        lv_s3path = lo_intermediatesourceconfi->get_intermediates3path( ).
      ENDIF.
    ENDIF.
  ENDIF.
  lo_incrementalrunconfig = lo_result->get_incrementalrunconfig( ).
  IF lo_incrementalrunconfig IS NOT INITIAL.
    lv_incrementalruntype = lo_incrementalrunconfig->get_incrementalruntype( ).
  ENDIF.
  lv_string = lo_result->get_rolearn( ).
ENDIF.