Fuego.Lib : Process

An instance of the Process component represents a business process model that is deployed in Oracle BPM.

Use the Process component to read the properties of a process, such as its ID, name and list of activities that the process contains.

The value of predefined variable process represents the current process.

You can associate any data with a particular process by using the Process.store*Property() set of methods. To retrieve previously stored data, use the Process.retrieve*Property() set of methods.

Example 1: Displaying Basic Information About the Current Process

display "Process ID: " + ProcessInstance.process.id +
    "\nProcess ID Number: " + ProcessInstance.process.idNumber +
    "\nProcess Name: " + ProcessInstance.process.name
 

Example 2: Displaying Basic Information About the Current Process, Without Using the process Predefined Variable

When your code is in a Global or BPM Object method (and not in a regular Process method), you do not have access to the process predefined variable. When this is the case, it is still possible to get a reference to the current process by using the default instance of the Process component, which you access with Process (uppercase P):

display "Process ID: " + Process.id +
    "\nProcess ID Number: " + Process.idNumber +
    "\nProcess Name: " + Process.name