Determinations Server supports the concept of a "Custom Assess Service". This feature is designed to allow the retrieval of data from an external data source (web service, database, etc.) in between calls to the OPA Assess API. This requires custom coding.
The most common pattern is to call OPA from within a BPM or BPEL process (or directly, via a point-to-point integration).
Good Morning Davin
Actually, my question is whether we can trigger another process from OPA. I noticed the Assess Service but also wondering whether the interview service can be used.
I realize this pattern and the one you described requires custom coding.
At the end of the interview, there are various ways you could have a custom data adapter trigger the next step of the process. One approach is to watch a database table that is updated by that data adapter, so that the next step of the process is then automatically initiated by the BPM tool.
I have managed to deployed the determinations-server.war with the rulebase to WLS. I am also able to create a web service proxy to send request to ODS and get the response returned. However, my doubt now is I do not know how to consume it in BPM. In my BPM process flow, I tried creating a web service call to ODS but it did not work, as in the flow runs and completed with success but there were no response returned from ODS due its complex type which couldn't be mapped directly to the data object type created in BPM.
I am wondering if there is any samples or tutorials available which will guide me in understanding this topic better. Any help is much appreciated.
Many thanks in advance!
You could try using the Specific assess service for BPM. The specific assess service will give you an XML schema named for the entitites, attributes and relationships in your rulebase.
Pro: it should be easier to map in a BPM process.
Con: this schema will change if you change the entitites, attributes and relationships in your rulebase.
See "Decide whether to use the generic or specific data model for batch processing" in Oracle Policy Automation Developer's Guide