Bookshelf Home | Contents | Index | PDF |
Siebel Business Process Framework: Workflow Guide > About Workflow Process Design Options > About Events > About the Run-Time EventA workflow process can integrate with the run-time events engine to provide a simplified way to automate a business process. Benefits provided by this technique include:
The types of events that are possible include: A run-time event allows the Siebel application to respond in real time to user actions. A run-time event can be specified in the connectors that emanates from for Start, Wait, or User Interact steps to invoke or resume a workflow process. The properties of the WF Step Branch that are used to define a run-time event include: For more information, seeInvoking a Workflow Process from a Run-Time Event. A run-time event provides one way to invoke a workflow process. For a comparison of invocation methods, see Invoking a Workflow Process. For more information on run-time events, see Siebel Personalization Administration Guide. Using a Run-Time Event With a Long-Running WorkflowNOTE: It is recommended that a run-time event not be used to trigger a long-running workflow because a run-time event is specifically attached to a single user and a single session. A run-time event is only for that single user, as it stems from Personalization functionality. Instead, use an interactive workflow or a service workflow to handle the run-time event. Then, after processing and validating the workflow, generate a user event to notify a long-running workflow. Using a Run-Time Event With the User Interact StepEvents not supported with the User Interact step include:
The event supported with the User Interact step includes:
Using a Run-Time Event Within a Business Object ContextA workflow process that references a run-time event is only invoked when the run-time event is detected from within the same Business Object context in which the workflow process is based. For example, assume a workflow is invoked by the WriteRecord run-time event and that the workflow's Business Object property is set to Service Request. To update the record, the user clicks the Service Requests List screen tab, updates the Status field, then steps off the record. In this case, the record is written in the context of the Service Request business object, and the run-time event that is defined on the workflow process fires. However, the run-time event does not fire if the Status field is updated within a non-Service Request business object context. For example, assume the user drills down on a Contact, clicks the Service Requests view tab, updates the Status field, then steps off the record. In this case, the service request record is being written in the context of the Contact Business Object, and the run-time event does not fire. Using a Run-Time Event Within a M:1 RelationshipWhen using a runtime-event to trigger a workflow based on a modification made to a record that contains a M:1 relationship with a parent, you must trigger the workflow based on the child's ROW_ID. For example, assume you need to trigger a workflow when a field in a service request's activity record is updated. Since a given service request can have one or many activities, you must trigger the workflow based on the ROW_ID for the activity, not the service request. If you base the trigger on the service request's ROW_ID, then a change made in the service request's form applet triggers the workflow, but a change made in the activities list applet does not. To examine this relationship, in the Siebel client navigate to Service Request > Service Request List, create a new service request, drill down by clicking in the SR# field, then use the Activities list applet to create two new activities. In this view, note that the top service request form applet displays fields for the parent service request while the bottom activities list applet displays multiple activities for the parent. To create a test workflow process triggered within a M:1 relationship
Using a Run-Time Event With the Updated By FieldIf a step has a runtime event has its processing mode defined to run locally to either start or resume a Workflow Process, then Updated By is the user who is currently logged into the application. Run-Time Events That Cannot Be Used to Invoke a Workflow ProcessSince a workflow process can be invoked only within the context of a business component record, if there is no business component record context it is not possible to invoke a workflow, and attempting to invoke a workflow using the BusComp Query event will fail. Therefore, any runtime event that has the possibility of returning no results cannot be used to invoke a workflow. Repeat Usage of a Runtime EventWhen defining a run-time event within a workflow process, the run-time event must not be repeated. You cannot use the same event more than once within a given workflow process. |
Siebel Business Process Framework: Workflow Guide | Copyright © 2008, Oracle. All rights reserved. | |