/AWS1/IF_MHO=>UPDATEWORKFLOWSTEP()¶
About UpdateWorkflowStep¶
Update a step in a migration workflow.
Method Signature¶
METHODS /AWS1/IF_MHO~UPDATEWORKFLOWSTEP
IMPORTING
!IV_ID TYPE /AWS1/MHOSTEPID OPTIONAL
!IV_STEPGROUPID TYPE /AWS1/MHOSTEPGROUPID OPTIONAL
!IV_WORKFLOWID TYPE /AWS1/MHOMIGRATIONWORKFLOWID OPTIONAL
!IV_NAME TYPE /AWS1/MHOSTEPNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MHOSTEPDESCRIPTION OPTIONAL
!IV_STEPACTIONTYPE TYPE /AWS1/MHOSTEPACTIONTYPE 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
!IV_STATUS TYPE /AWS1/MHOSTEPSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mhoupdworkflowsteprsp
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_id TYPE /AWS1/MHOSTEPID /AWS1/MHOSTEPID¶
The ID 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.
Optional arguments:¶
iv_name TYPE /AWS1/MHOSTEPNAME /AWS1/MHOSTEPNAME¶
The name of the step.
iv_description TYPE /AWS1/MHOSTEPDESCRIPTION /AWS1/MHOSTEPDESCRIPTION¶
The description of the step.
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.
io_workflowstepautomationc00 TYPE REF TO /AWS1/CL_MHOWORKFLOWSTEPAUTO00 /AWS1/CL_MHOWORKFLOWSTEPAUTO00¶
The custom script to run tests on the source and 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 outputs of a step.
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.
iv_status TYPE /AWS1/MHOSTEPSTATUS /AWS1/MHOSTEPSTATUS¶
The status of the step.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mhoupdworkflowsteprsp /AWS1/CL_MHOUPDWORKFLOWSTEPRSP¶
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->updateworkflowstep(
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_id = |string|
iv_name = |string|
iv_status = |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_stepid = lo_result->get_id( ).
lv_string = lo_result->get_stepgroupid( ).
lv_string = lo_result->get_workflowid( ).
lv_string = lo_result->get_name( ).
ENDIF.