/AWS1/CL_IOS=>DESCRIBECOMPUTATIONMODEL()
¶
About DescribeComputationModel¶
Retrieves information about a computation model.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_computationmodelid
TYPE /AWS1/IOSID
/AWS1/IOSID
¶
The ID of the computation model.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_iosdsccomputationmd01
/AWS1/CL_IOSDSCCOMPUTATIONMD01
¶
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->/aws1/if_ios~describecomputationmodel( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_id = lo_result->get_computationmodelid( ).
lv_arn = lo_result->get_computationmodelarn( ).
lv_restrictedname = lo_result->get_computationmodelname( ).
lv_restricteddescription = lo_result->get_computationmodeldesc( ).
lo_computationmodelconfigu = lo_result->get_computationmodelconf( ).
IF lo_computationmodelconfigu IS NOT INITIAL.
lo_computationmodelanomaly = lo_computationmodelconfigu->get_anomalydetection( ).
IF lo_computationmodelanomaly IS NOT INITIAL.
lv_inputproperties = lo_computationmodelanomaly->get_inputproperties( ).
lv_resultproperty = lo_computationmodelanomaly->get_resultproperty( ).
ENDIF.
ENDIF.
LOOP AT lo_result->get_computationmdeldatabin00( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lo_assetmodelpropertybindi = lo_value->get_assetmodelproperty( ).
IF lo_assetmodelpropertybindi IS NOT INITIAL.
lv_id = lo_assetmodelpropertybindi->get_assetmodelid( ).
lv_id = lo_assetmodelpropertybindi->get_propertyid( ).
ENDIF.
lo_assetpropertybindingval = lo_value->get_assetproperty( ).
IF lo_assetpropertybindingval IS NOT INITIAL.
lv_id = lo_assetpropertybindingval->get_assetid( ).
lv_id = lo_assetpropertybindingval->get_propertyid( ).
ENDIF.
LOOP AT lo_value->get_list( ) into lo_row_1.
lo_row_2 = lo_row_1.
IF lo_row_2 IS NOT INITIAL.
lo_assetmodelpropertybindi = lo_row_2->get_assetmodelproperty( ).
IF lo_assetmodelpropertybindi IS NOT INITIAL.
lv_id = lo_assetmodelpropertybindi->get_assetmodelid( ).
lv_id = lo_assetmodelpropertybindi->get_propertyid( ).
ENDIF.
lo_assetpropertybindingval = lo_row_2->get_assetproperty( ).
IF lo_assetpropertybindingval IS NOT INITIAL.
lv_id = lo_assetpropertybindingval->get_assetid( ).
lv_id = lo_assetpropertybindingval->get_propertyid( ).
ENDIF.
" Skipping lo_row_1 to avoid recursion
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_timestamp = lo_result->get_computationmdelcreatio00( ).
lv_timestamp = lo_result->get_computationmdellastupd00( ).
lo_computationmodelstatus = lo_result->get_computationmodelstatus( ).
IF lo_computationmodelstatus IS NOT INITIAL.
lv_computationmodelstate = lo_computationmodelstatus->get_state( ).
lo_errordetails = lo_computationmodelstatus->get_error( ).
IF lo_errordetails IS NOT INITIAL.
lv_errorcode = lo_errordetails->get_code( ).
lv_errormessage = lo_errordetails->get_message( ).
LOOP AT lo_errordetails->get_details( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_detailederrorcode = lo_row_4->get_code( ).
lv_detailederrormessage = lo_row_4->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_version = lo_result->get_computationmodelversion( ).
LOOP AT lo_result->get_actiondefinitions( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_id = lo_row_6->get_actiondefinitionid( ).
lv_name = lo_row_6->get_actionname( ).
lv_name = lo_row_6->get_actiontype( ).
ENDIF.
ENDLOOP.
ENDIF.