Skip to content

/AWS1/CL_IOA=>RUNPIPELINEACTIVITY()

About RunPipelineActivity

Simulates the results of running a pipeline activity on a message payload.

Method Signature

IMPORTING

Required arguments:

io_pipelineactivity TYPE REF TO /AWS1/CL_IOAPIPELINEACTIVITY /AWS1/CL_IOAPIPELINEACTIVITY

The pipeline activity that is run. This must not be a channel activity or a data store activity because these activities are used in a pipeline only to load the original message and to store the (possibly) transformed message. If a Lambda activity is specified, only short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be used.

it_payloads TYPE /AWS1/CL_IOAMESSAGEPAYLOADS_W=>TT_MESSAGEPAYLOADS TT_MESSAGEPAYLOADS

The sample message payloads on which the pipeline activity is run.

RETURNING

oo_output TYPE REF TO /aws1/cl_ioarunplinactivityrsp /AWS1/CL_IOARUNPLINACTIVITYRSP

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_ioa~runpipelineactivity(
  io_pipelineactivity = new /aws1/cl_ioapipelineactivity(
    io_addattributes = new /aws1/cl_ioaaddattrsactivity(
      it_attributes = VALUE /aws1/cl_ioaattrnamemapping_w=>tt_attributenamemapping(
        (
          VALUE /aws1/cl_ioaattrnamemapping_w=>ts_attributenamemapping_maprow(
            value = new /aws1/cl_ioaattrnamemapping_w( |string| )
            key = |string|
          )
        )
      )
      iv_name = |string|
      iv_next = |string|
    )
    io_channel = new /aws1/cl_ioachannelactivity(
      iv_channelname = |string|
      iv_name = |string|
      iv_next = |string|
    )
    io_datastore = new /aws1/cl_ioadatastoreactivity(
      iv_datastorename = |string|
      iv_name = |string|
    )
    io_deviceregistryenrich = new /aws1/cl_ioadevregenrichacti00(
      iv_attribute = |string|
      iv_name = |string|
      iv_next = |string|
      iv_rolearn = |string|
      iv_thingname = |string|
    )
    io_deviceshadowenrich = new /aws1/cl_ioadevshadowenricha00(
      iv_attribute = |string|
      iv_name = |string|
      iv_next = |string|
      iv_rolearn = |string|
      iv_thingname = |string|
    )
    io_filter = new /aws1/cl_ioafilteractivity(
      iv_filter = |string|
      iv_name = |string|
      iv_next = |string|
    )
    io_lambda = new /aws1/cl_ioalambdaactivity(
      iv_batchsize = 123
      iv_lambdaname = |string|
      iv_name = |string|
      iv_next = |string|
    )
    io_math = new /aws1/cl_ioamathactivity(
      iv_attribute = |string|
      iv_math = |string|
      iv_name = |string|
      iv_next = |string|
    )
    io_removeattributes = new /aws1/cl_ioaremattrsactivity(
      it_attributes = VALUE /aws1/cl_ioaattributenames_w=>tt_attributenames(
        ( new /aws1/cl_ioaattributenames_w( |string| ) )
      )
      iv_name = |string|
      iv_next = |string|
    )
    io_selectattributes = new /aws1/cl_ioaselattrsactivity(
      it_attributes = VALUE /aws1/cl_ioaattributenames_w=>tt_attributenames(
        ( new /aws1/cl_ioaattributenames_w( |string| ) )
      )
      iv_name = |string|
      iv_next = |string|
    )
  )
  it_payloads = VALUE /aws1/cl_ioamessagepayloads_w=>tt_messagepayloads(
    ( new /aws1/cl_ioamessagepayloads_w( '5347567362473873563239796247513D' ) )
  )
).

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_payloads( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_messagepayload = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_logresult = lo_result->get_logresult( ).
ENDIF.