Change is the only constant, they say. But change still feels uncomfortable, and still makes it hard for professionals to stay in tune with products and technologies. Just ask any Siebel professional how it felt making the jump to an open standards HTML based interface from something rather proprietary!
With Oracle Intelligent Advisor, we have a bit of an advantage. We know that Oracle is committed to keeping Oracle Policy Modeling and all the power of the current platform. At the same time, there is a limited release of what could arguably be called the next generation. Some of it is totally transparent and easy to learn (Decision Services and their references extend and empower Oracle Policy Modeling and in spite of some truly unfriendly vocabulary, it is easy to grasp how it all fits together).
The other side of the picture is a bit more like the example of Siebel moving to HTML5. There are quite a lot of misinterpretations and downright misunderstandings of what Flows actually are all about. This post aims to sort this out.
Firstly, let us talk about the two different project types you might find on your way to learning about Flows.
- The Flow Scheme
- The Flow
The flow scheme you can think of as the “toolbox” that defines what the Flow author can build in the Flow designer. For example, a Flow Scheme specialist could create a special “widget” for you to place on your Flow that shows the time in Texas. Or, more usefully, the Flow Scheme could contain predefined components (textbox, checkbox, dropdown etc.) that you can use in your Flow. Yes, that’s right. Flow Schemes act like a defined set of tools for you to use. It goes beyond controls and also defines language strings, formats for dates and even data items that are going to be available to the Flow designer to load into their Flow. So it is a combination of the Interview Tab, Controls List, the Styles dialog and the Strings dialog from Oracle Policy Modeling.
The Flow is (as you might expect) a design that looks like a set of screens. Only we don’t call them screens (Pages) or stages (page-groups) but you do also find goals and other familiar territory like values for dropdowns (inline lists), visibility for controls and more.
So far so good. Where a lot of people struggle is the next step – actually seeing the Flow in the browser. In the Oracle Policy Modeling world it is as easy as clicking the Debug button. In the world of Forms it is different, and for good reason. Let’s break it down first with a simple comparison. In current generation Oracle Policy Modeling interviews. the user interface is built by the interview author. And they click Debug. That’s it. Behind the scenes, a bunch of templates, JavaScript, CSS, images, session management, authentication and everything else is handled for you. That’s great if you like the interview the way it is. But suppose you needed an Interview to run in a completely different way – not in a browser, or using a specific set of JavaScript framework functionality that isn’t what is provided. You’re kind of stuck. Sure you could use the (now deprecated) Interview Service, or the Chat Service, but you would have a lot of work.
And there are plenty of organizations that need to use a specific platform – because they have constraints, technical requirements or just because they use the same platform for all their other applications, so why can’t they use it for Oracle Intelligent Advisor.
And this is where the Flow concept really gets going. The whole idea is that with a Flow, there is no web interface unless you build it – you have complete freedom of choice and can build it as you wish with whatever technology floats your boat. The Flow Engine API is an API – it is a set of programming interfaces. Nothing more, nothing less.
So now when I tell you that within that API you can open a Session, obtain the Flow model and view the different pages and controls, see what the value lists are, see what should be visible and what should not; you can probably see where this is going. A developer can build whatever they like to take advantage of this, and still respect the flow of the pages, show the correct controls, hide things when they are meant to be hidden and so forth.
Here is a chunk of the response from one of the most obvious API calls – you’ve opened a Session and you get to see the flow model – the pages and groups of pages that make up the flow.

Looks kind of familiar, right? Boolean, yes, no, question, value, visible, required and a few more. All these things we also have (in different forms) in our current Interviews. But we don’t have to do anything, the user interface is just “there”. Now, you are seeing the metadata that will become an interface, should you decide to build one.
So, always looking for an opportunity to push an idea too far, I decided to build a user interface using…Visual Basic. This is not a good choice, as many of the features of the Flow Engine API are really designed for modern, web-based frameworks, not for client-side applications that run in Windows. But we can certainly take the idea for a spin. For example:
See what the code is doing? it is deciding how to render each item in the page-group > page > row structure. Those of you who followed another crazy project will notice how similar this looks to the crazy Entity Collect Extension where we built the entire UX from scratch (go down to the part labelled Drawing the Inputs). That’s because it is essentially the same idea.
Pushing the envelope even further, we can build our Visual Basic application that opens a session, gets the Flow model, finds the pages, and builds the pages “on the fly” in the Visual Basic user interface by instantiating control instances as we need them:
Yes, I know, it is so ugly it shouldn’t be allowed. But the point is, the user interface was chosen by me. Not imposed.
Once you realize that the Flow Engine API is your starting point for building a user interface, you can make the choice that is right for you:
- I’m an author, not a coder. So I will learn how to build web authored rules and how to create logical page groups and pages, but I won’t get involved in how the final user interface is built.
- I’m a one-person department or team. So if we decide to use Flows then I’d better learn about the web authored rules, web authored flow pages and page groups, and how to consume the Flow Engine API
In part two of this article, we will dig into the second biggest mystery of Flows – debugging and the sample renderer.
