/AWS1/IF_SGA=>STARTHUMANLOOP()¶
About StartHumanLoop¶
Starts a human loop, provided that at least one activation condition is met.
Method Signature¶
METHODS /AWS1/IF_SGA~STARTHUMANLOOP
IMPORTING
!IV_HUMANLOOPNAME TYPE /AWS1/SGAHUMANLOOPNAME OPTIONAL
!IV_FLOWDEFINITIONARN TYPE /AWS1/SGAFLOWDEFINITIONARN OPTIONAL
!IO_HUMANLOOPINPUT TYPE REF TO /AWS1/CL_SGAHUMANLOOPINPUT OPTIONAL
!IO_DATAATTRIBUTES TYPE REF TO /AWS1/CL_SGAHUMANLOOPDATAATTRS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgastarthlresponse
RAISING
/AWS1/CX_SGACONFLICTEXCEPTION
/AWS1/CX_SGAINTERNALSERVEREX
/AWS1/CX_SGASERVICEQUOTAEXCDEX
/AWS1/CX_SGATHROTTLINGEX
/AWS1/CX_SGAVALIDATIONEX
/AWS1/CX_SGACLIENTEXC
/AWS1/CX_SGASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_humanloopname TYPE /AWS1/SGAHUMANLOOPNAME /AWS1/SGAHUMANLOOPNAME¶
The name of the human loop.
iv_flowdefinitionarn TYPE /AWS1/SGAFLOWDEFINITIONARN /AWS1/SGAFLOWDEFINITIONARN¶
The Amazon Resource Name (ARN) of the flow definition associated with this human loop.
io_humanloopinput TYPE REF TO /AWS1/CL_SGAHUMANLOOPINPUT /AWS1/CL_SGAHUMANLOOPINPUT¶
An object that contains information about the human loop.
Optional arguments:¶
io_dataattributes TYPE REF TO /AWS1/CL_SGAHUMANLOOPDATAATTRS /AWS1/CL_SGAHUMANLOOPDATAATTRS¶
Attributes of the specified data. Use
DataAttributesto specify if your data is free of personally identifiable information and/or free of adult content.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgastarthlresponse /AWS1/CL_SGASTARTHLRESPONSE¶
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->starthumanloop(
io_dataattributes = new /aws1/cl_sgahumanloopdataattrs(
it_contentclassifiers = VALUE /aws1/cl_sgacontclassifiers_w=>tt_contentclassifiers(
( new /aws1/cl_sgacontclassifiers_w( |string| ) )
)
)
io_humanloopinput = new /aws1/cl_sgahumanloopinput( |string| )
iv_flowdefinitionarn = |string|
iv_humanloopname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_humanlooparn = lo_result->get_humanlooparn( ).
ENDIF.