Skip to Main Content

Intelligent Advisor

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extracting attributes from OPA session that are determined by a Rule Loop

916325Jun 7 2012 — edited Jun 14 2012
So I am totally stumped on this one...

We are using OPA 10.3 with an embedded rulebase in a large Java web application.

The problem is that I have a Currency attribute that is determined in a complex series of rule-looped rule tables. The logic works beautifully... in the debugger... However, when I harvest the attribute from the Session using the engine APIs, the value is not correct. it seems to be the default value that I establish in my rule loops. What this looks like to me is that is that when I get the attribute from the EntityInstance, it is re-determining the attribute, but only cycling through the loop a single time.

Is a very strange issue. I have seen thing like this in our rulebase before but have been able to work around them. This one has me completely stumped. What is even more frustrating is that I am dumping the contents of the session into xml right before the extraction, and when I plug them into the debugger I see the expected value that I want being determined.... But when I retrieve the data from the session it is not the right value!!!

I have tried getting crafty with some intermediate rules and some wrapper type rules but nothing seems to work. Again, they all work great in debugger, but not during real extract...

Any ideas?

Thanks,
Dan

Edited by: Hager on Jun 7, 2012 2:29 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2012
Added on Jun 7 2012
6 comments
475 views