My Oracle Support Banner

'Failed to Process ExposedComputation' Message During Service Layer REST API Call (Doc ID 3025736.1)

Last updated on JUNE 07, 2024

Applies to:

Oracle Insurance Policy Administration J2EE - Version 11.3.1.24 and later
Information in this document applies to any platform.

Symptoms

On : 11.3.1.24 version, Service Layer

When attempting to use the Service Layer REST API exposedComputation with a couple of parameters passing JSON input,
the following message is reported:


ERROR
-----------------------
"Failed to process ExposedComputation. Could not find definition for variable: Parameter:policynumber"


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a test exposedComputation, called M001 as below:

<ExposedComputation NAME="M001">
   <Input>
       <Parameters><Parameter NAME="CompanyName">CompanyName</Parameter></Parameters>
       <MathVariables><MathVariable VARIABLENAME="CompanyName" TYPE="EXPRESSION" DATATYPE="TEXT">Parameter:CompanyName</MathVariable></MathVariables>
   </Input>
<Output>
<Mappings><Mapping OUTPUTNAME="CompanyName">CompanyName</Mapping></Mappings>
</Output>
</ExposedComputation>


2.  Call the EC using REST Endpoint:
curl --insecure -X POST -H "Accept: application/json" --header 'Content-Type: application/json' -u *****:***** "https://<url>:<port>/PASService/rest/services/exposedComputation" --data '{"exposedComputation":{"computationId":"M001","parameters":[{"name":"CompanyName", "value":"TestCompany"}]}}'

This returns:
"M001": {
   "CompanyName": "TestCompany"
 }

This looks good but the problem is that the moment more parameters are added, or even replace CompanyName parameter with anything else say policynumber then it gives error that:
"Failed to process ExposedComputation. Could not find definition for variable: Parameter:policynumber"

Tried to use all kinds of parameters to test even CompanyName1, or whatever but it gives same type of error.
Only parameter it wanted and liked was just one: CompanyName

This is from doc: https://docs.oracle.com/cd/F41560_01/service_layer/rest_api_doc/service_layer/html/op-exposedcomputation-post.html

The same Exposed Computation call works when called through OIPA End Point and passing xml input.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.