Introduction to the Error Catch Event

Modeling Business Processes with Oracle BPM 6-35

6.9.3 Looping Subprocesses

You can configure a subprocess to repeat numerous within the context of a process flow. This is something that a process analyst should consider when designing a process, but the implementation is generally performed by process developers.

6.10 Changing the Value of Data Objects in Your Process

This section describes how to use the script task to change the values of data objects within your process.

6.10.1 Introduction to the Script Task

The script task is used to change values of data objects within your process. The script task is used when you want to model this explicitly this within your business process or when you must change the values of data objects outside of another flow object. It is often used to set initial values of data objects at the beginning of a process. Figure 6–45 shows the default notation for the script task. Figure 6–45 The Script Task The script task is represented by a yellow rectangle with a scroll icon in the middle. Script tasks are generally added to a process by process developers who are responsible for defining the behavior of data objects within a process and process-based application.

6.10.1.1 The Script Task in Context

Figure 6–46 shows two examples of the script task used at the beginning of the Sales Quote example process. The Sales Quote example process uses a script task to set initial values for data objects at the beginning of a the process and to set values for several business indicators. Figure 6–46 The Script Task within the Sales Quote Example Project This graphic shows a start event with a sequence flow extending to a script task labeled Initialize Quote. 6-36 Modeling and Implementation Guide for Oracle Business Process Management From the initialize quote task, a sequence flow extends to a user task labeled Enter Quote. From the Enter Quote task, a sequence flow extends to a script task labeled Set Business Indicators. Project data objects are data objects that you define in a project, all the processes in that project have those data object defined, though the value changes according to the process using them. In addition, the engine stores the value of those marked as business indicators to the process analytics databases if the project is configured to use them. Figure 6–47 shows the data associations used to set initial values for the business indicators. Figure 6–47 Data Associations Used by the Set Business Indicators Script Task This figure shows how the data associations editor appears for the Set Business Indicators script task in the Sales Quote example project. It contains two columns. On the left is a list of data objects representing the input arguments to the script task. On the right are the three data objects that these are mapped to. As with other flow objects that accept data associations, you can use expressions to change the values of data objects. Figure 6–48 shows how an expression is used to alter the value of the discount project variable. Figure 6–48 Expression Used to Change the Value of Discount Project Variable This figure shows an example of the expression editor show the expression used to define the value of the discount project variable. The value of the expression is: roundquote.summary.effectiveDiscount 100.

6.11 Measuring Process Performance Using Measurement Marks

You can measure process performance using measurement marks. Measurement marks enable you to measure a business indicator of type measure at a certain point in the process or in a section of the process.