/AWS1/IF_DOA=>CREATEBACKLOGTASK()¶
About CreateBacklogTask¶
Creates a new backlog task in the specified agent space
Method Signature¶
METHODS /AWS1/IF_DOA~CREATEBACKLOGTASK
IMPORTING
!IV_AGENTSPACEID TYPE /AWS1/DOAAGENTSPACEID OPTIONAL
!IO_REFERENCE TYPE REF TO /AWS1/CL_DOAREFERENCEINPUT OPTIONAL
!IV_TASKTYPE TYPE /AWS1/DOATASKTYPE OPTIONAL
!IV_TITLE TYPE /AWS1/DOABACKLOGTASKTITLE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/DOABACKLOGTASKDESC OPTIONAL
!IV_PRIORITY TYPE /AWS1/DOAPRIORITY OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/DOASTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_doacrebacklogtaskrsp
RAISING
/AWS1/CX_DOAACCESSDENIEDEX
/AWS1/CX_DOACONFLICTEXCEPTION
/AWS1/CX_DOACONTENTSIZEEXCDEX
/AWS1/CX_DOAINTERNALSERVEREX
/AWS1/CX_DOAINVALIDPARAMETEREX
/AWS1/CX_DOARESOURCENOTFOUNDEX
/AWS1/CX_DOASERVICEQUOTAEXCDEX
/AWS1/CX_DOATHROTTLINGEX
/AWS1/CX_DOAVLDTNEXCEPTION
/AWS1/CX_DOACLIENTEXC
/AWS1/CX_DOASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_agentspaceid TYPE /AWS1/DOAAGENTSPACEID /AWS1/DOAAGENTSPACEID¶
The unique identifier for the agent space where the task will be created
iv_tasktype TYPE /AWS1/DOATASKTYPE /AWS1/DOATASKTYPE¶
The type of task being created
iv_title TYPE /AWS1/DOABACKLOGTASKTITLE /AWS1/DOABACKLOGTASKTITLE¶
The title of the backlog task
iv_priority TYPE /AWS1/DOAPRIORITY /AWS1/DOAPRIORITY¶
The priority level of the task
Optional arguments:¶
io_reference TYPE REF TO /AWS1/CL_DOAREFERENCEINPUT /AWS1/CL_DOAREFERENCEINPUT¶
Optional reference information for the task
iv_description TYPE /AWS1/DOABACKLOGTASKDESC /AWS1/DOABACKLOGTASKDESC¶
Optional detailed description of the task
iv_clienttoken TYPE /AWS1/DOASTRING /AWS1/DOASTRING¶
Client-provided token for idempotent operations
RETURNING¶
oo_output TYPE REF TO /aws1/cl_doacrebacklogtaskrsp /AWS1/CL_DOACREBACKLOGTASKRSP¶
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->createbacklogtask(
io_reference = new /aws1/cl_doareferenceinput(
iv_associationid = |string|
iv_referenceid = |string|
iv_referenceurl = |string|
iv_system = |string|
iv_title = |string|
)
iv_agentspaceid = |string|
iv_clienttoken = |string|
iv_description = |string|
iv_priority = |string|
iv_tasktype = |string|
iv_title = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_task = lo_result->get_task( ).
IF lo_task IS NOT INITIAL.
lv_string = lo_task->get_agentspaceid( ).
lv_string = lo_task->get_taskid( ).
lv_string = lo_task->get_executionid( ).
lv_string = lo_task->get_title( ).
lv_string = lo_task->get_description( ).
lo_referenceoutput = lo_task->get_reference( ).
IF lo_referenceoutput IS NOT INITIAL.
lv_string = lo_referenceoutput->get_system( ).
lv_string = lo_referenceoutput->get_title( ).
lv_string = lo_referenceoutput->get_referenceid( ).
lv_string = lo_referenceoutput->get_referenceurl( ).
lv_string = lo_referenceoutput->get_associationid( ).
ENDIF.
lv_tasktype = lo_task->get_tasktype( ).
lv_priority = lo_task->get_priority( ).
lv_taskstatus = lo_task->get_status( ).
lv_backlogtimestamp = lo_task->get_createdat( ).
lv_backlogtimestamp = lo_task->get_updatedat( ).
lv_integer = lo_task->get_version( ).
lo_value = lo_task->get_supportmetadata( ).
IF lo_value IS NOT INITIAL.
ENDIF.
lo_value = lo_task->get_metadata( ).
IF lo_value IS NOT INITIAL.
ENDIF.
lv_string = lo_task->get_primarytaskid( ).
lv_string = lo_task->get_statusreason( ).
lv_boolean = lo_task->get_haslinkedtasks( ).
ENDIF.
ENDIF.