Skip to content

/AWS1/IF_BDN=>INVOKEACTSTEP()

About InvokeActStep

Executes the next step of an act, processing tool call results and returning new tool calls if needed.

Method Signature

METHODS /AWS1/IF_BDN~INVOKEACTSTEP
  IMPORTING
    !IV_WORKFLOWDEFINITIONNAME TYPE /AWS1/BDNWORKFLOWDEFNNAME OPTIONAL
    !IV_WORKFLOWRUNID TYPE /AWS1/BDNUUIDSTRING OPTIONAL
    !IV_SESSIONID TYPE /AWS1/BDNUUIDSTRING OPTIONAL
    !IV_ACTID TYPE /AWS1/BDNUUIDSTRING OPTIONAL
    !IT_CALLRESULTS TYPE /AWS1/CL_BDNCALLRESULT=>TT_CALLRESULTS OPTIONAL
    !IV_PREVIOUSSTEPID TYPE /AWS1/BDNUUIDSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdninvokeactsteprsp
  RAISING
    /AWS1/CX_BDNACCESSDENIEDEX
    /AWS1/CX_BDNCONFLICTEXCEPTION
    /AWS1/CX_BDNINTERNALSERVEREX
    /AWS1/CX_BDNRESOURCENOTFOUNDEX
    /AWS1/CX_BDNSERVICEQUOTAEXCDEX
    /AWS1/CX_BDNTHROTTLINGEX
    /AWS1/CX_BDNVLDTNEXCEPTION
    /AWS1/CX_BDNCLIENTEXC
    /AWS1/CX_BDNSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_workflowdefinitionname TYPE /AWS1/BDNWORKFLOWDEFNNAME /AWS1/BDNWORKFLOWDEFNNAME

The name of the workflow definition containing the act.

iv_workflowrunid TYPE /AWS1/BDNUUIDSTRING /AWS1/BDNUUIDSTRING

The unique identifier of the workflow run containing the act.

iv_sessionid TYPE /AWS1/BDNUUIDSTRING /AWS1/BDNUUIDSTRING

The unique identifier of the session containing the act.

iv_actid TYPE /AWS1/BDNUUIDSTRING /AWS1/BDNUUIDSTRING

The unique identifier of the act to invoke the next step for.

it_callresults TYPE /AWS1/CL_BDNCALLRESULT=>TT_CALLRESULTS TT_CALLRESULTS

The results from previous tool calls that the act requested.

Optional arguments:

iv_previousstepid TYPE /AWS1/BDNUUIDSTRING /AWS1/BDNUUIDSTRING

The identifier of the previous step, used for tracking execution flow.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdninvokeactsteprsp /AWS1/CL_BDNINVOKEACTSTEPRSP

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->invokeactstep(
  it_callresults = VALUE /aws1/cl_bdncallresult=>tt_callresults(
    (
      new /aws1/cl_bdncallresult(
        it_content = VALUE /aws1/cl_bdncallresultcontent=>tt_callresultcontents(
          ( new /aws1/cl_bdncallresultcontent( |string| ) )
        )
        iv_callid = |string|
      )
    )
  )
  iv_actid = |string|
  iv_previousstepid = |string|
  iv_sessionid = |string|
  iv_workflowdefinitionname = |string|
  iv_workflowrunid = |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_calls( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_callid = lo_row_1->get_callid( ).
      lo_value = lo_row_1->get_input( ).
      IF lo_value IS NOT INITIAL.
      ENDIF.
      lv_string = lo_row_1->get_name( ).
    ENDIF.
  ENDLOOP.
  lv_uuidstring = lo_result->get_stepid( ).
ENDIF.