Oracle Policy Automation Connector for Siebel - Infrerred Entity instances
I am doing POC to see if OPA can meet the following requirement. I am new to OPA and not sure on how to achieve below requirement:
I have Siebel IO, root is Sales Order header and child integration component has order line items (many). Sales Order header has fields Transport Type and valid values are 'Sea', 'Air', 'Road'.
In rulebase we have calculations for Transport Type. For Example If 'Air' 20% discount, 'Sea' 10% discount, 'Road' 5% discount should be applied on sum of all line items. From totalSum calculated using 'InstanceSum' function we need to apply some more percentage of discount on totalsum and then apply the same percentage down to all the order line items and update another field 'AppliedAmount' on each Integration Component line items and then send the response to Siebel and upsert."