Skip to content

/AWS1/IF_BDC=>STARTMEMORYEXTRACTIONJOB()

About StartMemoryExtractionJob

Starts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records. When earlier extraction attempts have left events unprocessed, this job will pick up and extract those as well.

To use this operation, you must have the bedrock-agentcore:StartMemoryExtractionJob permission.

Method Signature

METHODS /AWS1/IF_BDC~STARTMEMORYEXTRACTIONJOB
  IMPORTING
    !IV_MEMORYID TYPE /AWS1/BDCMEMORYID OPTIONAL
    !IO_EXTRACTIONJOB TYPE REF TO /AWS1/CL_BDCEXTRACTIONJOB OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/BDCSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdcstartmemextjobout
  RAISING
    /AWS1/CX_BDCACCESSDENIEDEX
    /AWS1/CX_BDCRESOURCENOTFOUNDEX
    /AWS1/CX_BDCSERVICEEXCEPTION
    /AWS1/CX_BDCSERVICEQUOTAEXCDEX
    /AWS1/CX_BDCTHROTTLEDEXCEPTION
    /AWS1/CX_BDCVALIDATIONEX
    /AWS1/CX_BDCCLIENTEXC
    /AWS1/CX_BDCSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_memoryid TYPE /AWS1/BDCMEMORYID /AWS1/BDCMEMORYID

The unique identifier of the memory for which to start extraction jobs.

io_extractionjob TYPE REF TO /AWS1/CL_BDCEXTRACTIONJOB /AWS1/CL_BDCEXTRACTIONJOB

Extraction job to start in this operation.

Optional arguments:

iv_clienttoken TYPE /AWS1/BDCSTRING /AWS1/BDCSTRING

A unique, case-sensitive identifier to ensure idempotent processing of the request.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdcstartmemextjobout /AWS1/CL_BDCSTARTMEMEXTJOBOUT

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->startmemoryextractionjob(
  io_extractionjob = new /aws1/cl_bdcextractionjob( |string| )
  iv_clienttoken = |string|
  iv_memoryid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_jobid( ).
ENDIF.