/AWS1/IF_MHO=>CREATEWORKFLOWSTEP()¶
About CreateWorkflowStep¶
Create a step in the migration workflow.
Method Signature¶
METHODS /AWS1/IF_MHO~CREATEWORKFLOWSTEP
IMPORTING
!IV_NAME TYPE /AWS1/MHOMIGRATIONWORKFLOWNAME OPTIONAL
!IV_STEPGROUPID TYPE /AWS1/MHOSTEPGROUPID OPTIONAL
!IV_WORKFLOWID TYPE /AWS1/MHOMIGRATIONWORKFLOWID OPTIONAL
!IV_STEPACTIONTYPE TYPE /AWS1/MHOSTEPACTIONTYPE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MHOMIGRATIONWORKFLOWDESC OPTIONAL
!IO_WORKFLOWSTEPAUTOMATIONC00 TYPE REF TO /AWS1/CL_MHOWORKFLOWSTEPAUTO00 OPTIONAL
!IT_STEPTARGET TYPE /AWS1/CL_MHOSTRINGLIST_W=>TT_STRINGLIST OPTIONAL
!IT_OUTPUTS TYPE /AWS1/CL_MHOWORKFLOWSTEPOUTPUT=>TT_WORKFLOWSTEPOUTPUTLIST OPTIONAL
!IT_PREVIOUS TYPE /AWS1/CL_MHOSTRINGLIST_W=>TT_STRINGLIST OPTIONAL
!IT_NEXT TYPE /AWS1/CL_MHOSTRINGLIST_W=>TT_STRINGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mhocreworkflowsteprsp
RAISING
/AWS1/CX_MHOACCESSDENIEDEX
/AWS1/CX_MHOINTERNALSERVEREX
/AWS1/CX_MHOTHROTTLINGEX
/AWS1/CX_MHOVALIDATIONEX
/AWS1/CX_MHOCLIENTEXC
/AWS1/CX_MHOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/MHOMIGRATIONWORKFLOWNAME /AWS1/MHOMIGRATIONWORKFLOWNAME¶
The name of the step.
iv_stepgroupid TYPE /AWS1/MHOSTEPGROUPID /AWS1/MHOSTEPGROUPID¶
The ID of the step group.
iv_workflowid TYPE /AWS1/MHOMIGRATIONWORKFLOWID /AWS1/MHOMIGRATIONWORKFLOWID¶
The ID of the migration workflow.
iv_stepactiontype TYPE /AWS1/MHOSTEPACTIONTYPE /AWS1/MHOSTEPACTIONTYPE¶
The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.
Optional arguments:¶
iv_description TYPE /AWS1/MHOMIGRATIONWORKFLOWDESC /AWS1/MHOMIGRATIONWORKFLOWDESC¶
The description of the step.
io_workflowstepautomationc00 TYPE REF TO /AWS1/CL_MHOWORKFLOWSTEPAUTO00 /AWS1/CL_MHOWORKFLOWSTEPAUTO00¶
The custom script to run tests on source or target environments.
it_steptarget TYPE /AWS1/CL_MHOSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST¶
The servers on which a step will be run.
it_outputs TYPE /AWS1/CL_MHOWORKFLOWSTEPOUTPUT=>TT_WORKFLOWSTEPOUTPUTLIST TT_WORKFLOWSTEPOUTPUTLIST¶
The key value pairs added for the expected output.
it_previous TYPE /AWS1/CL_MHOSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST¶
The previous step.
it_next TYPE /AWS1/CL_MHOSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST¶
The next step.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mhocreworkflowsteprsp /AWS1/CL_MHOCREWORKFLOWSTEPRSP¶
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->createworkflowstep(
io_workflowstepautomationc00 = new /aws1/cl_mhoworkflowstepauto00(
io_command = new /aws1/cl_mhoplatformcommand(
iv_linux = |string|
iv_windows = |string|
)
io_scriptlocations3key = new /aws1/cl_mhoplatformscriptkey(
iv_linux = |string|
iv_windows = |string|
)
iv_runenvironment = |string|
iv_scriptlocations3bucket = |string|
iv_targettype = |string|
)
it_next = VALUE /aws1/cl_mhostringlist_w=>tt_stringlist(
( new /aws1/cl_mhostringlist_w( |string| ) )
)
it_outputs = VALUE /aws1/cl_mhoworkflowstepoutput=>tt_workflowstepoutputlist(
(
new /aws1/cl_mhoworkflowstepoutput(
io_value = new /aws1/cl_mhoworkflowstepoutu00(
it_listofstringvalue = VALUE /aws1/cl_mhomaxstringlist_w=>tt_maxstringlist(
( new /aws1/cl_mhomaxstringlist_w( |string| ) )
)
iv_integervalue = 123
iv_stringvalue = |string|
)
iv_datatype = |string|
iv_name = |string|
iv_required = ABAP_TRUE
)
)
)
it_previous = VALUE /aws1/cl_mhostringlist_w=>tt_stringlist(
( new /aws1/cl_mhostringlist_w( |string| ) )
)
it_steptarget = VALUE /aws1/cl_mhostringlist_w=>tt_stringlist(
( new /aws1/cl_mhostringlist_w( |string| ) )
)
iv_description = |string|
iv_name = |string|
iv_stepactiontype = |string|
iv_stepgroupid = |string|
iv_workflowid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_id( ).
lv_string = lo_result->get_stepgroupid( ).
lv_string = lo_result->get_workflowid( ).
lv_string = lo_result->get_name( ).
ENDIF.