You can group a series of functions together and determine the path that the user follows through the group using the PROIV Aurora’s Routing functionality. A Route can be regarded as series of tasks that an Operator performs, e.g. create order, create invoice etc and you can set up a Route that follows this set of tasks.

Routing has several advantages:

For example, a Function Route could consist of a Screen function which accepts criteria, followed by an Update function which populates a workfile based on the criteria, and the Route finishes with a Report function that outputs data based in the workfile.

Furthermore, several Routes can contain the same set of functions. Each Route can be set up to include all of the functions, alternatively the functions can added to a Route and that Route can be called by other Routes

For example, a Function Route could consist of a Screen function which accepts criteria, followed by an Update function which populates a workfile based on the criteria, and the Route finishes with a Report function that outputs data based in the workfile.

Furthermore, several Routes can contain the same set of functions. Each Route can be set up to include all of the functions, alternatively the functions can added to a Route and that Route can be called by other Routes.

For example:

Route 1

 

 

Route 2

 

Function

ScreenA

 

Function

ScreenB

Function

Update1

 

Function

Update1

Function

Update2

 

Function

Update2

Function

Update3

 

Function

Update3

Function

Report1

 

Function

Report2

The updates could be placed into their own Route (Route3) and called by Route1 and Route2

Route1

 

 

Route 2

 

 

Route 3

 

Function

ScreenA

 

Function

ScreenB

 

Function

Update1

Route

Route3

 

Route

Route3

 

Function

Update2

Function

Report1

 

Function

Report3

 

Function

Update3

Function Route Definition Rules

General Guidance

It is important to note the following when maintaining and creating Routes and PROIV Functions:

Routing Rules

Click here to view a screenshot that shows the PROIV Function Definition screen where the function moves onto the next item in the Route, regardless of whether the function is exited normally or in error.

Setting Exit Link in Code

Furthermore, you can programmatically override the Exit Link during function execution, e.g. when the user clicks a Cancel or if an error occurred that means the Route cannot continue.  This causes it to link to the function or Route named in the subsequent item’s Error Link field. If this is blank, or there is no subsequent item then the Route will return to its caller, either a menu or a parent Route.

To force the function to exit to the next Exit Link in the Route, use the following code:

@LFUNCT = “@AU_NEXT"

To force the function to exit to the next Error Link in the Route, use the following code:

@LFUNCT = “@AU_CANCEL"

To force the function to exit to the menu, use the following code:

@LFUNCT = “@AU0400U1"

 

Note: This only applies to non-Global functions.

 

Comment on this topic

Topic ID: 810100