/AWS1/IF_SAG=>BATCHGETCODEREVIEWJOBTASKS()¶
About BatchGetCodeReviewJobTasks¶
Retrieves information about one or more tasks within a code review job.
Method Signature¶
METHODS /AWS1/IF_SAG~BATCHGETCODEREVIEWJOBTASKS
IMPORTING
!IV_AGENTSPACEID TYPE /AWS1/SAGSTRING OPTIONAL
!IT_CODEREVIEWJOBTASKIDS TYPE /AWS1/CL_SAGTASKIDLIST_W=>TT_TASKIDLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagbtcgtcodrevjobta01
RAISING
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_agentspaceid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING¶
The unique identifier of the agent space that contains the tasks.
it_codereviewjobtaskids TYPE /AWS1/CL_SAGTASKIDLIST_W=>TT_TASKIDLIST TT_TASKIDLIST¶
The list of task identifiers to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagbtcgtcodrevjobta01 /AWS1/CL_SAGBTCGTCODREVJOBTA01¶
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->batchgetcodereviewjobtasks(
it_codereviewjobtaskids = VALUE /aws1/cl_sagtaskidlist_w=>tt_taskidlist(
( new /aws1/cl_sagtaskidlist_w( |string| ) )
)
iv_agentspaceid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_codereviewjobtasks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_taskid( ).
lv_string = lo_row_1->get_codereviewid( ).
lv_string = lo_row_1->get_codereviewjobid( ).
lv_string = lo_row_1->get_agentspaceid( ).
lv_string = lo_row_1->get_title( ).
lv_string = lo_row_1->get_description( ).
LOOP AT lo_row_1->get_categories( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_name( ).
lv_boolean = lo_row_3->get_isprimary( ).
ENDIF.
ENDLOOP.
lv_risktype = lo_row_1->get_risktype( ).
lv_taskexecutionstatus = lo_row_1->get_executionstatus( ).
lo_loglocation = lo_row_1->get_logslocation( ).
IF lo_loglocation IS NOT INITIAL.
lv_logtype = lo_loglocation->get_logtype( ).
lo_cloudwatchlog = lo_loglocation->get_cloudwatchlog( ).
IF lo_cloudwatchlog IS NOT INITIAL.
lv_string = lo_cloudwatchlog->get_loggroup( ).
lv_string = lo_cloudwatchlog->get_logstream( ).
ENDIF.
ENDIF.
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_notfound( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.