/AWS1/IF_MWS=>GETWORKFLOW()¶
About GetWorkflow¶
Retrieves detailed information about a workflow, including its configuration, status, and metadata.
Method Signature¶
METHODS /AWS1/IF_MWS~GETWORKFLOW
IMPORTING
!IV_WORKFLOWARN TYPE /AWS1/MWSWORKFLOWARN OPTIONAL
!IV_WORKFLOWVERSION TYPE /AWS1/MWSWORKFLOWVERSION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mwsgetworkflowrsp
RAISING
/AWS1/CX_MWSACCESSDENIEDEX
/AWS1/CX_MWSINTERNALSERVEREX
/AWS1/CX_MWSOPERATIONTIMEOUTEX
/AWS1/CX_MWSRESOURCENOTFOUNDEX
/AWS1/CX_MWSTHROTTLINGEX
/AWS1/CX_MWSVALIDATIONEX
/AWS1/CX_MWSCLIENTEXC
/AWS1/CX_MWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workflowarn TYPE /AWS1/MWSWORKFLOWARN /AWS1/MWSWORKFLOWARN¶
The Amazon Resource Name (ARN) of the workflow you want to retrieve.
Optional arguments:¶
iv_workflowversion TYPE /AWS1/MWSWORKFLOWVERSION /AWS1/MWSWORKFLOWVERSION¶
Optional. The specific version of the workflow to retrieve. If not specified, the latest version is returned.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mwsgetworkflowrsp /AWS1/CL_MWSGETWORKFLOWRSP¶
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->getworkflow(
iv_workflowarn = |string|
iv_workflowversion = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_workflowarn = lo_result->get_workflowarn( ).
lv_workflowversion = lo_result->get_workflowversion( ).
lv_namestring = lo_result->get_name( ).
lv_descriptionstring = lo_result->get_description( ).
lv_timestampvalue = lo_result->get_createdat( ).
lv_timestampvalue = lo_result->get_modifiedat( ).
lo_encryptionconfiguration = lo_result->get_encryptionconfiguration( ).
IF lo_encryptionconfiguration IS NOT INITIAL.
lv_encryptiontype = lo_encryptionconfiguration->get_type( ).
lv_string = lo_encryptionconfiguration->get_kmskeyid( ).
ENDIF.
lo_loggingconfiguration = lo_result->get_loggingconfiguration( ).
IF lo_loggingconfiguration IS NOT INITIAL.
lv_string = lo_loggingconfiguration->get_loggroupname( ).
ENDIF.
lv_engineversion = lo_result->get_engineversion( ).
lv_workflowstatus = lo_result->get_workflowstatus( ).
lo_definitions3location = lo_result->get_definitions3location( ).
IF lo_definitions3location IS NOT INITIAL.
lv_string = lo_definitions3location->get_bucket( ).
lv_string = lo_definitions3location->get_objectkey( ).
lv_string = lo_definitions3location->get_versionid( ).
ENDIF.
lo_scheduleconfiguration = lo_result->get_scheduleconfiguration( ).
IF lo_scheduleconfiguration IS NOT INITIAL.
lv_string = lo_scheduleconfiguration->get_cronexpression( ).
ENDIF.
lv_rolearn = lo_result->get_rolearn( ).
lo_networkconfiguration = lo_result->get_networkconfiguration( ).
IF lo_networkconfiguration IS NOT INITIAL.
LOOP AT lo_networkconfiguration->get_securitygroupids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_securitygroupstring = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_networkconfiguration->get_subnetids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_subnetstring = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_genericstring = lo_result->get_triggermode( ).
lv_genericstring = lo_result->get_workflowdefinition( ).
ENDIF.