Exposed Computation
The Service Layer exposes this POST Exposed Computation REST web service to provide the ability for the external applications to access OIPA's robust math engine.
This request supports the capabilities of exposed computation SOAP web service.
Configuration and Pre-requisites
- The configuror should configure a business rule in the Rules Palette, which can be used for Exposed Computation.
- The properties in the payload request should contain the data as per the requirement of the Exposed Computation business rule to be invoked.
Process Flow
- Once the Service Layer receives the Exposed Computation payload, it will continue to execute the existing flow of SOAP Exposed Computation web service using the configuration built in AsExposedComputation.
- As per the success/validation result of the executed operations, the responses are built and the Service Layer will send the response to the requester, with appropriate HTTP status codes.
The following Sample XML configuration can be used to send the ExposedComputation request either in XML/JSON formats.
To see the request and response examples (JSON/XML) for this configuration, refer ExposedComputation API.
Sample Exposed Computation XML Configuration
<ExposedComputation>
<Input>
<Parameters>
<Parameter NAME="UserID">UserID</Parameter>
</Parameters>
<MathVariables>
<!-- Assign parameters to varaibles -->
<MathVariable VARIABLENAME="UserID" TYPE="EXPRESSION" DATATYPE="TEXT">Parameter:UserID</MathVariable>
<MathVariable VARIABLENAME="PrimaryCompanyName" TYPE="STRINGARRAY" OPERATION="FILLBY-SQL" DATATYPE="TEXT">select ASCOMPANY.COMPANYNAME from ASUSER, ASROLE, ASCOMPANY where ASUSER.CLIENTNUMBER='[UserID]' and ASUSER.CLIENTGUID = ASROLE.CLIENTGUID and ASCOMPANY.COMPANYGUID = ASROLE.COMPANYGUID</MathVariable>
</MathVariables>
</Input>
<Output>
<Mappings>
<Mapping OUTPUTNAME="PrimaryCompanyName" DATATYPE="TEXT">PrimaryCompanyName</Mapping>
</Mappings>
</Output>
</ExposedComputation>