/AWS1/IF_SGM=>CREATEFLOWDEFINITION()¶
About CreateFlowDefinition¶
Creates a flow definition.
Method Signature¶
METHODS /AWS1/IF_SGM~CREATEFLOWDEFINITION
IMPORTING
!IV_FLOWDEFINITIONNAME TYPE /AWS1/SGMFLOWDEFINITIONNAME OPTIONAL
!IO_HUMANLOOPREQUESTSOURCE TYPE REF TO /AWS1/CL_SGMHLREQUESTSOURCE OPTIONAL
!IO_HUMANLOOPACTIVATIONCONFIG TYPE REF TO /AWS1/CL_SGMHUMANLOOPACTCONFIG OPTIONAL
!IO_HUMANLOOPCONFIG TYPE REF TO /AWS1/CL_SGMHUMANLOOPCONFIG OPTIONAL
!IO_OUTPUTCONFIG TYPE REF TO /AWS1/CL_SGMFLOWDEFNOUTPUTCFG OPTIONAL
!IV_ROLEARN TYPE /AWS1/SGMROLEARN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmcreateflowdefnrsp
RAISING
/AWS1/CX_SGMRESOURCEINUSE
/AWS1/CX_SGMRESOURCELIMITEXCD
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_flowdefinitionname TYPE /AWS1/SGMFLOWDEFINITIONNAME /AWS1/SGMFLOWDEFINITIONNAME¶
The name of your flow definition.
io_outputconfig TYPE REF TO /AWS1/CL_SGMFLOWDEFNOUTPUTCFG /AWS1/CL_SGMFLOWDEFNOUTPUTCFG¶
An object containing information about where the human review results will be uploaded.
iv_rolearn TYPE /AWS1/SGMROLEARN /AWS1/SGMROLEARN¶
The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example,
arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298.
Optional arguments:¶
io_humanlooprequestsource TYPE REF TO /AWS1/CL_SGMHLREQUESTSOURCE /AWS1/CL_SGMHLREQUESTSOURCE¶
Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source.
io_humanloopactivationconfig TYPE REF TO /AWS1/CL_SGMHUMANLOOPACTCONFIG /AWS1/CL_SGMHUMANLOOPACTCONFIG¶
An object containing information about the events that trigger a human workflow.
io_humanloopconfig TYPE REF TO /AWS1/CL_SGMHUMANLOOPCONFIG /AWS1/CL_SGMHUMANLOOPCONFIG¶
An object containing information about the tasks the human reviewers will perform.
it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST¶
An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag consists of a key and a value, both of which you define.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmcreateflowdefnrsp /AWS1/CL_SGMCREATEFLOWDEFNRSP¶
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->createflowdefinition(
io_humanloopactivationconfig = new /aws1/cl_sgmhumanloopactconfig( new /aws1/cl_sgmhlactcondsconfig( |string| ) )
io_humanloopconfig = new /aws1/cl_sgmhumanloopconfig(
io_publicworkforcetaskprice = new /aws1/cl_sgmpubworkforcetskp00(
io_amountinusd = new /aws1/cl_sgmusd(
iv_cents = 123
iv_dollars = 123
iv_tenthfractionsofacent = 123
)
)
it_taskkeywords = VALUE /aws1/cl_sgmflowdeftskkeywor00=>tt_flowdefinitiontaskkeywords(
( new /aws1/cl_sgmflowdeftskkeywor00( |string| ) )
)
iv_humantaskuiarn = |string|
iv_taskcount = 123
iv_taskdescription = |string|
iv_tasktimelimitinseconds = 123
iv_tasktitle = |string|
iv_tskavailabilitylifetime00 = 123
iv_workteamarn = |string|
)
io_humanlooprequestsource = new /aws1/cl_sgmhlrequestsource( |string| )
io_outputconfig = new /aws1/cl_sgmflowdefnoutputcfg(
iv_kmskeyid = |string|
iv_s3outputpath = |string|
)
it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
(
new /aws1/cl_sgmtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_flowdefinitionname = |string|
iv_rolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_flowdefinitionarn = lo_result->get_flowdefinitionarn( ).
ENDIF.