Welcome to the OPA Hub!


Tag Archives: OPA

Fun with Aliases and Strings #2

Fun with Aliases and Strings #2

Returning to the ” Aliases and Strings”  theme of the previous post, where we looked into an example of String concatenation. Just a reminder, in the previous article you created the entity model and set up a couple of relationships, before using a rule to decide if the ticker tape instance is a member of a relationship called  the next ticker tapes.

So here is the continuation of the document you saw in the previous steps:

Aliases and Strings #2

The first part should look reasonably familiar, since it builds on the example with the next ticker tapes. But is uses the second relationship, called the closest ticker tape. Note the wording closest ticker tape not ticker tapes. We are aiming for the closest one, or if you prefer, the next one in line. So for ticker tape number 3, the closest would be number 4.

Dodgey Ticker

We again use an alias, but things get a bit sticky in the following parts. Where did the further ticker tape come from? Well, perhaps unsurprisingly, it’s another alias. You see, we already used the other ticker tape in the conclusion so we need to use another word : in this case further was my personal choice, but it could have been another word that meant something in this context. So by now we have the following, expressed in conversational style :

Compare ticker tape A (with other tapes, let’s say B, C and D). B,C or D will be called the closest ticker tape if the following is true.

  1. B,C or D have an ID that is higher than the ID for A
  2. Using the next ticker tapes as your starting point (so, B C and D)
  3. Compare them (so B compared to C, B compared to D etc) to this rule
  4. Is B’s ID is less than or equal to C (for example)?

So we end up with the ticker tape that is in the next ticker tapes AND has an ID that is less than or equal to the other next ticker tapes. So it is the closest one.

I’m reminded of this excellent conversation from Monty Python since it can get a bit confusing at first:

video

The final rule concerns whichever ticker tape has the longest string. And that string is what you are about to create, for each and every instance of your entity.

We’re coming with you!

You will generate a string of text for each of the entity instances (so, for each of the ticker tape instances). And this string will be the driver of a logical loop.

Firstly, let’s set your scene and remind of the context:

  1. “Text 1”
  2. “Text 2”
  3. “Text 3”

Each ticker tape has a text message, for example “Text 1” . This message should be concatenated with the other text messages to form a long “final” string. Each should have a comma inserted between them, into the final string, and of course a “.” at the end. Just to make a nice tidy “final” string. It might look like “Text 1, Text 2, Text 3.”.

Aliases and Strings #2

So each instance has a text string, and a “final text”. The “final text” will be the ticker tape text string concatenated with the closest ticker tape’s text string, plus a comma if required – for example if there are no “next ticker tapes” for a given tape, it’s because we have reached the end of the instances (number 4 , if there is no number 5).

The following attributes give us the numbers used in the table above:

Aliases and Strings #2

And the final (final) global attribute:

Final String Result

Aliases and Strings #2

In the next part of this series, there will be a chance to look back on the techniques, observe the warning message and generally investigate your logical loop.

Aliases and Strings part three will be with you in a few days, In the meantime of course you can read the online help here.

Back to OPA Basics : Oracle Policy Modeling Features

Back to OPA Basics : Oracle Policy Modeling Features

Welcome to another in our periodic back to OPA basics series. At the moment I am watching a lot of new starters join a set of experienced developers. And funnily enough, both groups sometimes are stuck in their routine. For the new people, they fall back on what they know from other rules engines. For the more experienced people, that are familiar with Oracle Policy Modeling, they repeat what they learned long ago and do not necessarily see anything that has been added to the application in the intervening time since they first started using it.

So here are my top five cool time savers and useful things you can find in Oracle Policy Modeling today.

  • The Rule Assistant

I still find it strange that many people don’t use the Assistant in Word. If there was ever a tool to avoid having to remember the arcane spelling and phraseology of an Oracle Policy Automation attribute, this is it!

Back to OPA Basics - Rule Assistant

  • The Convert to Test Case Export

Watching people filling in every cell in their Test Case spreadsheet, when they probably have already saved many of the initial scenarios as debug sessions, I think they should remember the fact that they can move a unit test into a Test Case, and vice-versa.

Back to OPA Basics - Export as Test Case

  • The Find Unused Attribute Filter

I tend to use this one when the Rule Assistant has not been used very much, so we are looking for duplicate / mispelled attributes in our Project (see Rule Assistant, above).

Back to OPA Basics - Unused Attributes

  • The Inclusion Report

OK, so I’m probably cheating as far as this one is concerned, but it is a real time saver. In 19A, the introduction of the Inclusion Report has saved me time already. Great for beginning an impact assessment when some sort of surgery is required on Project structure. Find out more here.

Back to OPA Basics - Inclusion Report

  • The Export Entity Data Model Option

This is a tiny little option hidden away in the toolbar but I’m often asked by non-OPA people for the data model and I find this export really simple and quick to use.

Tiny Button - Export Data Model

Well, that’s our top five for now. What other tricks do you use to get the most out of Oracle Policy Modeling?

Let us know in the comments!

 

We Have A Winner! OPA Hub Complete Quiz – February 2019

We Have A Winner! OPA Hub Complete Quiz – February 2019

It is with uncommon pleasure that I can announce the winner of the OPA Hub Complete Quiz – February 2019. More about the winner in a moment, but just in case you didn’t know it already, we are now running a regular Prize Quiz. It has 100 questions and a maximum time of 90 minutes. The questions are in fact the collection of 10 different quizzes we already have – so if you did well in those quizzes then you will probably do very well in the OPA Hub Complete Quiz.

OPA Hub Complete Quiz BannerThe Quiz will now be refreshed with more questions (we aim to build a pool of about 250 questions by the end of the year) and restarted with a fresh leaderboard very soon. Watch this space to find out when the next Prize Quiz goes live. I guess I am also saying that you shouldn’t do the Complete Quiz until I restart it, because you would not be entered in the Prize Draw.

So what are the prizes?

  • First Place (Highest Score, and in case of identical score, the fastest to complete the Quiz will will a USD $50 Amazon Voucher
  • Second Place will win a stunning new OPA Hub Website T-Shirt
  • Third Place will win a stunning new OPA Hub Mug

And so, on to the…

Winner of the Inaugural OPA Hub Complete Quiz

Ladies and Gentlemen, I give you Allen Pak of Speridian Technologies, an experienced Rules Consultant. I’m hoping (s)he is reading this, and will get in touch to let us know the delivery address for the Amazon Voucher. And because Allen was the only winner this time, (s)he will also get a T-Shirt and Mug just because we are feeling generous. I hope (s)he will send us a photo of the T-Shirt and Mug in action. Please let us know size for the T-shirt too!

Congratulations to Allen. If you want to get practicing for the next Prize Quiz, start here.

What’s New in Oracle Policy Automation 19A?

What’s New in Oracle Policy Automation 19A?

The newest release has come off the production line and this one is a real cracker, full of useful and exciting new features. Here is an overview of what’s new in Oracle Policy Automation 19A.

  • New Images in Forms

Ever wanted to upload images during an interview and have them appear in the PDF output. Well, now you can! In the Sample XML file that you have loaded into your BI Publisher Desktop instance with Microsoft Word, you should now see extra “Fields” much in the same way as Signatures are currently handled. Similarly, special tags are required to turn the Base64 encoded text back into images, but the help file gives you all you need.

  • Use attributes in Extensions, even when they are not on the Screen in question.

A huge leap forward for Extension writers. Now you can specify certain (as required) attributes that are available to your Extensions without having to add them to whatever Screen(s) you need to add extensions to. It’s simple. Create a new file called opm.extension.data.json and add it to  your resources folder. The file, as the name suggests, is a JSON file containing the list of attributes you need to use. Then you can call the new getExtensionData() method of the Interview object to get hold of the data in JSON format at runtime. Special care will be needed not to slow performance when requesting lots of child data since it will have to return the parent and children. All of the items need to have public names as usual.

  • Chat API

Using the Chat API to facilitate a single-stream trackable / auditable conversation, OPA can be integrated into Digital Assistant, Facebook Assistant, Service Cloud Chat

  • Extension Enhancements

Now we have extendable Buttons, we can also retrieve Hint Text for attributes!

  • Mobile Enhancements

Close to my own heart these ones : now we can run Mobile assessments without an Internet or Hub connection. Please welcome the Mobile Answer API!

And that’s not the end of what’s new in Oracle Policy Automation 19D, because we can now launch out of the box OPA Mobile using a custom URL schema. To put it simply, you can start the OPA Mobile App from a URL in your browser, or from another App, and fire up the Interview you need. Awesome!

  • Hub Enhancements

Now you can check to see if a Project is using the correct Inclusions versions using a CSV report available in the Hub.What's New in Oracle Policy Automation 19A

This feature is also available in the Oracle Policy Modeling application, in the Inclusions pane of the Project tab.

You have also access to the new CheckPoint Inspection API, to take a look at the (potentially stale) data in CheckPoints and analyse it. Great news for GDPR-minded people.

  • Checkpoint Enhancements

We welcome better handling of resumed Interviews that fail to resume because of inaccessible data since the Checkpoint was saved. Starting with 19A, as much as possible of the data will be loaded into the Interview when it is resumed. The behaviour can be enabled on upgraded older projects from the Interview tab. Oracle Service Cloud users get a bonus of being able to choose to restart or load checkpointed data when resuming.

Summary

What’s New in Oracle Policy Automation 19A?

Told you this was a big one! Thanks as always to the Oracle Policy Automation Product Development team. Awesome work!

New Quizzes – New Prizes!

New Quizzes – New Prizes!

Our Quiz-making team has been hard at work setting up more quizzes to keep you entertained. We now have a grand total of 10 quizzes for you to practice your skills on (go to the Quizzes option on the main menu of this site). Plus, to give you even more of a challenge we have introduced the Complete Prize OPA Quiz for 2019. It contains all 100 questions from the individual quizzes, rolled into one quiz with 100 questions and only 90 minutes to finish it.

It will be reset each month (you can only take the quiz once per month) and new questions added / old questions removed as months go by. For our first month we are  offering a $50 US Amazon voucher to the winner, to be decided on 28 February – since January is almost finished. Find out more here. The runner-up will receive the OPA Hub Official T-Shirt, and the third place an OPA Hub Official Mug!

Get Prepared

Here are the links to the individual quizzes. Our research shows that these help new-starters get an idea of their knowledge gaps, and help build confidence in the product. It doesn’t matter if you are just having fun or perhaps you are preparing for an interview or even the Certification exam, they can be helpful and certainly will test your reflexes. For these new quizzes we have added some “non Multiple Choice” questions – drag and drop, sort and order that kind of thing – to give your mind something a little different to focus on.

Individual Quizzes

Oracle Policy Automation Quiz : Part One (10 questions, timed)

Oracle Policy Automation Quiz : Part Two (10 questions, timed)

Oracle Policy Automation Quiz : Part Three (10 questions, timed)

Oracle Policy Automation Quiz : Part Four (10 questions, timed)

Oracle Policy Automation Quiz : Part Five (10 questions, timed)

Oracle Policy Automation Quiz : Part Six (10 questions, timed)

Oracle Policy Automation Quiz : Part Seven (10 questions, timed)

Oracle Policy Automation Quiz : Part Eight (10 questions, timed)

Oracle Policy Automation Quiz : Part Nine (10 questions, timed)

Oracle Policy Automation Quiz : Part Ten (10 questions, timed)

Have Fun!

 

Enrich Oracle SaaS with PaaS

Are you working on Oracle SaaS implementations and want to integrate and extend them using PaaS?
Do you have non-SaaS /non-Oracle Systems which you want to integrate with, using their secured APIs?
Do you have requirement where multiple organizations are in a need to have a common, secure and open platform for customer engagement using their service API endpoints?
Attend our two days hands-on workshop to understand how to do all those using Oracle PaaS service like Oracle Integration Cloud, Oracle Mobile Cloud Enterprise, Oracle API Platform service in combination with Oracle SaaS solutions like Oracle Marketing Cloud & Oracle Policy Automation.
This enablement event is most suitable for developers and consultants who are trying to use SaaS and PaaS together. Though the example use case uses some basic banking services, methodology used in the use case is applicable to any domain having similar requirements.

Enrich Oracle SaaS with PaaS

Are you working on Oracle SaaS implementations and want to integrate and extend them using PaaS?
Do you have non-SaaS /non-Oracle Systems which you want to integrate with, using their secured APIs?
Do you have requirement where multiple organizations are in a need to have a common, secure and open platform for customer engagement using their service API endpoints?
Attend our two days hands-on workshop to understand how to do all those using Oracle PaaS service like Oracle Integration Cloud, Oracle Mobile Cloud Enterprise, Oracle API Platform service in combination with Oracle SaaS solutions like Oracle Marketing Cloud & Oracle Policy Automation.
This enablement event is most suitable for developers and consultants who are trying to use SaaS and PaaS together. Though the example use case uses some basic banking services, methodology used in the use case is applicable to any domain having similar requirements.

Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]

Using Oracle Cloud Applications to Augment On-Premises Applications

Sometimes at Oracle OpenWorld it can seem like the presentations just merge into one long PowerPoint presentation. Thankfully this was not the case this year, and the Thursday afternoon had a succession of really very interesting sessions. Let’s  start with CAS3942 all about Using Oracle Cloud Applications to Augment On-Premises, with a very concrete scenario.

The speaker from Toronto Legal Aid in this presentation (“Using Oracle Cloud Applications to Augment On-Premises Applications”) gave very interesting insight into the challenges facing the organization in respect of key stakeholders (the public, the providers and the organization itself) and the evolutionary pressures the organization is under (the need to take into account the generational nature of contact channel preferences, the need for organizational culture change in the face of digitalization, the importance of understanding client priority needs).

Of course the arrival of tools such as Oracle Service Cloud RightNow and Oracle Policy Automation (both Cloud-based) into a world currently using Oracle PeopleSoft (on-premise) will help drive that strategy forward in a future-proofed way. Satisfyingly, this presentation was not all about the technology and the “How we did it”, but it also dived deep into the vision behind this project : that of a citizen-driven future. The section on Transformation Tips was particularly interesting.

Below you will find a series of somewhat blurred photos that I took during the presentation and I hope that you can read them, at least well enough to get some value and think about these performance indicators and drivers for your own project.

Thanks to Karl Martineau, CIO of Toronto Legal Aid  for presenting, and also for not being afraid to take questions on the fly, and demo some of the pieces of their solution without hesitation, deviation or repetition (as the saying goes on the BBC).

This was the last of the Oracle Policy Automation-related presentations for 2018, so I look forward to picking up with the next ones in Modern CX Las Vegas 2019 which is already open for registration.

Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]Using Oracle Cloud Applications to Augment On-Premises Applications [CAS3942]

Oracle Policy Automation: Changing the Sales and Services Landscape [CAS2349]

Hi There!


This content is accessible only to logged in users of the OPA Hub Website.

To Register takes only 10 seconds and uses LinkedIn for authentication.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

Oracle Policy Automation Embed Website in Interview End

Oracle Policy Automation Embed Website in Interview

Oracle Policy Automation Embed Website in Interview

This request comes up quite often, at least often enough that I feel the need to mention it today. The example we are going to use is to embed the OPA Hub Website in an Oracle Policy Automation Interview. In addition we are going to pass an attribute to the website so that it performs a search for us. So, let us start our tutorial “Oracle Policy Automation Embed Website in Interview”.

Now, I am sure many of you are old enough to have spent years trying to avoid IFRAME integrations in applications : Siebel, SAP, they all do it or have done it at some point in time, and they are awful for the most part – whether it be from an accessibility, SEO, browser restriction or other perspective. So here are our goals for this mission:

  • Don’t use an IFRAME
  • Add the Website in a way that does not destroy the look and feel of the Interview
  • The Website must actually function properly

The steps to create this Project are shown below. You should be aware (and not be surprised) that this will not work well in the built-in embedded Browser in Debug Mode, so run Debug mode using Ctrl+Debug or deploy the Project to see the final results.

Oracle Policy Automation Embed Website in Interview Pre-requisites:

A New Project called “Oracle Policy Automation Embed Website in Interview” or something shorter.

Create a global attribute with the text the subject with a name of subject.

Create a new Screen to ask what is the subject. I suggest a Drop-down list with the Values “Siebel Integration, JavaScript Extensions,Service Cloud”.

Create a second Screen to display the Website.

  1. Create a label, using the name  of  the subject to display the chosen subject.
  2. Place this inside a Container
  3. Make sure you add a Property for the Container, naming the Object.

By now the Screen should look like this:

Oracle Policy Automation Embed Website in Interview Design

Now we come to the code. This is quite simple,although we will also need some CSS to make it look right. Add a JavaScript file and a CSS file to your resources folder for this Project. The explanation is after this code, which is as always provided for educational and investigative purposes only:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * Richard Napier The OPA Hub Website April 2018
 * Educational Example of Custom Container with a Website inside
 * I will remember this is for demonstration and educational purposes only
 */
 
OraclePolicyAutomation.AddExtension({
	customContainer: function (control,interview) {
		if (control.getProperty("name") === "xWebsite") {
 
			return {
				mount: function (el) {
					var myDiv = document.createElement("div");
					myDiv.setAttribute("id", "mySpecialDIV");
					document.body.appendChild(myDiv);
					$("#mySpecialDIV").width(900);
					$("#mySpecialDIV").height(600);
					var mySubject = interview.getValue("subject");
					$("#mySpecialDIV").html('XXXXXX'+ mySubject + '">');
				},
				update: function (el) {},
				unmount: function (el) {
					var myDiv = $("#mySpecialDIV");
					myDiv.remove();
 
				}
 
			}
		}
	}
});

Oracle Policy Automation Embed Website in Interview Code

In the code above, here are the salient points.

Lines 13 to 17 create a DIV and insert it into DOM, appending it to the body of the document.

Line 18 retrieves the value selected by the user on the previous page that is present in the Container as a label.

Line 19 is the most important one. Notice the “XXXXX”. Replace this with the website and any URL construct you need. For example, replace it with the following:

<object data="https://theopahub.com/main/?s=

The code viewer didn’t correctly display that part. Insert it exactly as shown, so that you are concatenating the URL with the user selected subject. The key point here is the use of the object tag rather than an nasty IFRAME. Thanks to Stackoverflow!

The rest of the code just tidies up when the unmount happens.

Oracle Policy Automation Embed Website in Interview CSS

The CSS is quite important here, to ensure that the embedding is seamless. Add this CSS code to your CSS file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
object {
    height: 100%;
    width: 100%;
}
#mySpecialDIV {
	float: left;
    margin: 0px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background-color: #404040;
}
html
{
    border: 0px;
    margin: 0px;
    overflow: hidden;
    padding: 0px;
}
body
{
    border: 0px;
    margin: 0px;
    overflow: hidden;
    padding: 0px;
}

Let’s take a look at the CSS. We use styling to position the DIV, as well as styling to ensure the object tag uses all of the available DIV. Finally we use some tricks to eliminate overflowing content and remove the horizontal scrollbar.

Oracle Policy Automation Embed Website in Interview Debugging

As mentioned earlier, this may be best tested in the Browser, not in the Debug Embedded Browser, so make sure you start with Ctrl+Debug.

The first screen will be straightforward:

Oracle Policy Automation Embed Website in Interview 1

The second screen will display and if your Internet connection is slow, you may have time to witness the two stages of display:

Stage 1 : Show the styled DIV that has been added to the Screen. Of course you don’t have to use this colour, I just wanted to use it for positioning and effect.

Oracle Policy Automation Embed Website in Interview DIV

Stage 2 : The embedded Website is displayed. The embedding is seamless (nice colour scheme!).

Oracle Policy Automation Embed Website in Interview End

  1. Notice that the attribute value has been passed to the OPA Hub Website and a search has been performed for you. The site is fully functional and can be accessed from the Interview Window.

Have a nice day! (The PDF is in the OPA Hub Shop).