/AWS1/IF_DPI=>EVALUATEEXPRESSION()¶
About EvaluateExpression¶
Task runners call EvaluateExpression to evaluate a string in the context of the specified object.
For example, a task runner can evaluate SQL queries stored in Amazon S3.
POST / HTTP/1.1 Content-Type: application/x-amz-json-1.1 X-Amz-Target: DataPipeline.DescribePipelines Content-Length: 164 Host: datapipeline.us-east-1.amazonaws.com X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT Authorization: AuthParams
{"pipelineId": "df-08785951KAKJEXAMPLE", "objectId": "Schedule", "expression": "Transform started at #{startDateTime} and finished at #{endDateTime}"}
x-amzn-RequestId: 02870eb7-0736-11e2-af6f-6bc7a6be60d9 Content-Type: application/x-amz-json-1.1 Content-Length: 103 Date: Mon, 12 Nov 2012 17:50:53 GMT
{"evaluatedExpression": "Transform started at 2012-12-12T00:00:00 and finished at 2012-12-21T18:00:00"}
Method Signature¶
METHODS /AWS1/IF_DPI~EVALUATEEXPRESSION
IMPORTING
!IV_PIPELINEID TYPE /AWS1/DPIID OPTIONAL
!IV_OBJECTID TYPE /AWS1/DPIID OPTIONAL
!IV_EXPRESSION TYPE /AWS1/DPILONGSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dpievaluatexprsnout
RAISING
/AWS1/CX_DPIINTERNALSVCERROR
/AWS1/CX_DPIINVALIDREQUESTEX
/AWS1/CX_DPIPIPELINEDELETEDEX
/AWS1/CX_DPIPIPELINENOTFOUNDEX
/AWS1/CX_DPITASKNOTFOUNDEX
/AWS1/CX_DPICLIENTEXC
/AWS1/CX_DPISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_pipelineid TYPE /AWS1/DPIID /AWS1/DPIID¶
The ID of the pipeline.
iv_objectid TYPE /AWS1/DPIID /AWS1/DPIID¶
The ID of the object.
iv_expression TYPE /AWS1/DPILONGSTRING /AWS1/DPILONGSTRING¶
The expression to evaluate.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dpievaluatexprsnout /AWS1/CL_DPIEVALUATEXPRSNOUT¶
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->evaluateexpression(
iv_expression = |string|
iv_objectid = |string|
iv_pipelineid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_longstring = lo_result->get_evaluatedexpression( ).
ENDIF.