For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hi,
We have built an OPA Interview and successfully integrated with Service Cloud.
We have already setup entities in OPA rulebase like this.
OPA Interview will collect information for Global(Contact) and Financial Application Custom Object. But, I need to create an "Incident" automatically and default/hard-code with following values, without showing it in the OPA Interview.
Also, there should be only one "Incident" instance..When OPA Interview resumes, it should not create another Incident.
Basically, I am trying to do is this..
if InstanceCount(all instances of Incident) = 0, then create new Incident with Category = Financial Application and Primary Contact = logged in contact
Can anyone help me with translating this to OPA Rules or configuration?
Thansks,
Aparajit
Thanks,
AP
Comment
Entity instances can be created automatically through rules. Take a look at this example in the documentation: Worked example 2: Infer existence of entities
Cheers,
Jasmine
Be the first to rate this
|
Sign in to rate this
Hi Aparajit,
As Jasmine points out, you'll need to infer an entity instance.
If your relationship from Financial Application to Incident is called "the incidents", then the following one line rule in a Word document would do that for you:
the incidents ("application incident") exists
The name of the incident in quotes doesn't really matter. This entity instance will only be created once for the interview session - if you the interview is saved and later resumed from a checkpoint.
Then you would have additional rules to set the values of that single incident. Since there is only one, you can just have simple rules to do it:
Be the first to rate this
|
Sign in to rate this