Guest Post : The Lazy Expert

The Lazy Expert

Firstly thanks to Richard who encouraged me to move forward and start blogging alongside him; just like a very good, loyal and trusted old friend that he is.[Richard’s Note : less of the “old” please :)]. When he asked if I had any immediate ideas for a blog, the first thing that came to my mind is the analogy that I have always used during so many of my OPA class teaches over the years, “Lazy Expert” and, bingo, that is the title for this post.

This now begs answering the question, why in the world a “Lazy Expert”? Particularly when OPA does so many things so very well. I do hope that you will agree with me in a few moments from now.

What does Lazy (as an adjective) mean?

The Oxford Dictionary says;

Unwilling to work or use energy

The Cambridge Dictionary is a little more elaborate;

Not willing or not wanting to work or use effort to do something

Who is an Expert?

Oxford Dictionary is all praise for someone who is an expert;

A person who is very knowledgeable about or skillful in a particular area

Cambridge Dictionary is not far behind with its own version of praise;

A person having a high level of knowledge or skill in a particular subject

The OPA Analogy

It is not difficult to imagine a person who is an expert and lazy, right? Who wouldn’t want to be? Now, let us see how Oracle Policy Automation is cajoled into doing anything at all…

Building a Rule Model and authoring business rules

The Oracle Policy Modeling tool is used to author business rules, validations, interview screen designs etc. and make sure the subject matter expertise is converted into a reusable repository of rules. It is indeed impressive that these rules can be written in practically unlimited number of languages of which 21 are supported natively (in other words, OPA is syntactically aware of these 21 languages).

This effectively made you, the rule author and the subject matter experts you worked with, the creators who created this expert.
OK, we now have a compiled rule model, the epitome of an expert. But nothing useful can still come out of this rule base archive (.zip file) sitting in a file system, unless we are able to make use of this expertise. The origins of laziness are now clearly visible.

Deploy to a run time

The rule base zip file can be deployed to the policy hub (version 12.x, public and private cloud options) or in the earlier 10.x versions, to a Determinations Server or Web Determinations. It can also be copied into a specific file system folder, targeted at the batch processor runtime or for use by the determinations engine implementation used natively by a Java or a .NET application. Whatever may be the customer’s choice of deployment environment, we have a way of making OPA available. All exciting and so far, all good…

Still nothing happens by itself, right? Policy Hub, Determinations Server, Web Determinations, Determinations Engine API, all of them do nothing with the expertise now embedded into them except, proverbially (or rather notoriously), “wait”. That’s our “Lazy Expert”

Make the expert do our bidding

The Nudge

We need some external trigger or a request before our “Expert” starts applying the expertise and responds with the decision and/or recommendation. The key is in finding the fright trigger that nudges our Expert in the most optimal way. The choice of the run time is critical in extracting the best from our Lazy Expert.

The antidote to laziness

The following table lists the different run-time options available with OPA and the different way sin which to nudge / trigger OPA to provide the expert decisions that it is indeed very much capable of.

OPA RuntimeNudge (Trigger)Possible Scale of Invocations / VolumeTypical Application / Solution ArchitectureUsed by (Oracle Application / Integration Adapter)
Policy Hub (Cloud / On Premise)Programmatic Invocation of “Assess” Web ServiceMillions of hits a dayOPA acts as the Server providing the assessment as a service and typically, the client application or the middleware collects all the information necessary for our expert to provide a decision or determine the outcome.OPA Siebel Integration, as used by the Siebel Public Sector vertical solution.



 HTTP(s) URL based invocation of the Interview Service100s of Thousands of invocations a dayOPA, as another Web Application, provides the Interview Session screens using the UI as configured by the rule author. It is also possible to pass additional parameters through the URL, pre-load the Interview session with data from the source application and later persist the data back into the source application itself on completion of the interview and an appropriate assessment is made by our expert.OPA RightNow Connector, which provides an assessment wizard for both the Agent (providing assisted service) as well as to the consumer (who is interested in achieving self-service)
Batch ProcessorCommand line tools invoking the Batch Processor, on demand or easily scheduled for periodic processingMillions of data records per runOPA is run in batch mode against the date that is collected into a set of tables marked for processing by our expert. Simple mapping files tell OPA as to which tables to take in as input and which ones to write into after the expert assessment has been made.A very similar architecture is adopted by the “Oracle In-Memory Policy Analytics product.
Mobile SDKA generic Mobile Application allowing the end user to select and specifically invoke the rule base that they are interested in.100s of Thousands of Invocations a dayA generic / native mobile application, from the respective application store for iOS and Android, connected to a Policy Hub can provide the standalone expert assessments that an end-user needs.


But typically requires custom mobile application development to provide a complete solution that is integrated to another line of business application, ether Hosted or On Premise, for a more complete business solution.

The native mobile application, provided by Oracle in the respective iOS App Store and Android Play Store.
Web DeterminationsSimilar to the Interview Service of Policy HubMillions of Hits a dayApplicable to version 10.x of Oracle Policy Automation runtime
Determinations ServerSimilar to the Assess Service of the Policy Hub100s of Thousands of invocations a dayApplicable to version 10.x of Oracle Policy Automation runtime

These are so many ways to make our expert work for us and more are being discovered each passing day. With the right Nudge, our Lazy Expert is not so lazy after all!

Coming Soon

Watch this space as we come up with more details on the various adapters and other exciting ways of making our expert work well for us…

The home page for OPA documentation can be found here.

Author: Raj Nandyala

Raj Nandyala has worked on BaaN ERP Product Development, BroadVision eCommerce Suite Implementations and for the last 15 years and counting, is working on a variety of Cloud/SaaS solutions from Oracle and SAP. He delivered training on behalf of Siebel University and later Oracle University on a number of technologies and products including Siebel CRM, Oracle BI and Oracle Policy Automation. His current interests include helping customers deploy simple but well-integrated and effective cloud solutions.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Intelligent Advisor IT Consulting Serving Customers Worldwide
Hide picture