Welcome to the OPA Hub!


Category Archives: 18C

Showing a Loading Image During Entity Creation

Showing a Loading Image During Entity Creation

When a user is entering some information into Entity attributes, it is entirely possible that one of those entity attributes may take its information from a Search extension. For example, you are entering instances of the Person entity and each Person has a location, so you want to select the location using a Search extension.

The Search, given that it is perhaps an Ajax call, could take some time. So you want to signal to the user that there is nothing to worry about, but they need to wait. Typically this is done through some sort of icon or image being displayed, much in the style of the Windows egg-timer or similar. This probably will also need a CSS style rule or two, in order to make it a bit funky.

We want to make sure that this is displayed in the right place, even if the user is creating several instances of the same entity. I mean that the icon should be displayed in the correct area of the screen, especially if you have instances whose screen layout takes up some space.

Anyway as always a picture is worth a thousand words. Here is the instance collection form:

Showing a Loading Image During Entity CreationWhen you have several on the screen, it might look like this:

Showing a Loading Image During Entity Creation

The Destination attribute is a Search extension that helps the user search for a Train Station in the United Kingdom. It take a few seconds for the search to happen.

So our timer needs to be shown in the right place whenever the user is searching. It needs to be instance A or B for example, depending on the instance the user is working on.

Showing a Loading Image During Entity Creation

In the example above the user has typed the Search criteria. The loader is shown in the centre of the instance while the search is happening. So we are Showing a Loading Image During Entity Creation.

Showing a Loading Image During Entity Creation

When the search data is returned, as in the example above, the user should no longer see the loader and the operation can continue as normal.

If the user moves to another instance, then the process should start again but the loader should be instance-aware and show in the correct place so as not to confuse.

Showing a Loading Image During Entity CreationTo do this we can use the Search extension, and add a little bit of extra code to

  • Check to see if we have already displayed the special icon
  •  If we have not, create it, center it on the instance we are working on, show it and make the Search
  • If the icon already exists, move it to the correct instance and show it then make the Search
  • When the search data is returned, hide the icon until the next time.

This example will work with non-tabular forms. I’ll be back with a second post investigating them in a couple of days.

You can find this simple example (with all the usual caveats and reminders that this is just for fun) in the OPA Hub Shop.  The official documentation is here, as always. Thanks to Shankar for the great example of Showing a Loading Image During Entity Creation!

What’s New in Oracle Policy Automation 18C?

What’s New in Oracle Policy Automation 18C?

It’s August and it must be time for another Oracle Policy Automation release! The team at Oracle have been beavering away and have unleashed lots of really cool new features in 18C. Here is a quick run-down of the things that will bring a smile, hopefully, to your face!

New REST API Functionality

Now we can really automate the processes that are involved in setting up Oracle Policy Automation. In addition to the existing REST interfaces for deployments and user management, there are now three new endpoints available in 18C:

  • Connections REST API – Creation and management of connections for any Policy Automation Hub. Programmatically insert Connection information like URLs, service information and so on
  • CORS Whitelist REST API – manage your whitelist for Cross Origin Scripting
  • SSL Certificates REST API –  if you use a custom root certificate for a Web Service Connection, now you can manage that with REST as well

New Build Feature

Using the OPMBuild command-line tool you can now  build deployment snapshots.

Obtain the Current Locale

Amusingly enough only a few days ago we were discussing language and locale on this site, and now we have a new function we can use in our Oracle Policy Automation rules to facilitate just that! The CurrentLocale() function returns strings like “en-GB”. When the user changes language in a multi-lingual interview, this value is updated too. Of course this opens up all sorts of interesting possibilities like locale sensitive help, URL links, or redirects at the end of an interview. Cool!

OPA 12 - 18C Locale Function

And of course once the information is available, you can display it in your Interview or otherwise use it as you see fit.

OPA 12 - 18C CurrentLocale in InterviewOther enhancements

Amongst the other enhancements are valuable new features in :

  • More Data Entry Options for X-to-One relationships – Yay!
  • PDF Form Fields (allowing TTF fonts)
  • Deployment as a Web Service now offering two choices : Assess / Answer  or Interview Service
  • In multi-input date controls, the ability to specify the Year Range and Second Increment

Now, if your chosen date entry style is the multi-input version, you can customize easily the date range:

OPA 12 - 18C Multi Input Date Options

In the next few weeks we will be investigating some of these in more detail. Good Job Oracle Policy Automation!