Top 23 Oracle Workflow Interview Questions You Must Prepare 19.Mar.2024

StartProcessThe StartProcess API begins the execution of an activity. The Create Process API creates a new runtime process for an item. The Resume Process API resumes a suspended item. The Begin Activity determines if the specified activity may currently be performed on the item.

a) if initiating the process using start_process, do the below

wf_engine.threshold := -1;

wf_engine.createprocess(l_itemtype,l_itemkey,'’);

wf_engine.startprocess(l_itemtype, l_itemkey)

b) When initiating the workflow process through an event subscription, set the Execution Condition Phase to be equal to or above 100 for it to be executed by background process.

Notification a time-out parameter only applies to a notification activity since the time-out parameters are used to measure when a notification expires. It does not apply to a function activity or a process activity.

Having a Respond message attribute Having a Respond message attribute will solicit responses from a notification activity. The display name will become the prompt and the description will be the instruction. Nothing else, such as a time-out parameter, a performer, or a Send message attribute, will have an affect in soliciting responses.

StartProcess, The StartProcess API begins the execution of an activity. The CreateProcess API creates a new runtime process for an item. The ResumeProcess API resumes a suspended item. The BeginActivity determines if the specified activity may currently be performed on the item.

Routes information, Sends notifications, Defines process rules. The primary purposes of a workflow are to route information, send notification, and define process rule. Although some history is maintained automatically by Oracle Workflow, it will not be considered as creating audit trails.

As lookup codes for a lookup type you define the possible results of an activity to drive different tritions using lookup codes for a lookup type. You cannot use item attributes. Separating the activity into two does not make sense since you want to drive two tractions with the same activity, but with two result codes. A process activity will not help in this scenario.

Routes information, Sends notifications, Defines process rules. The primary purposes of a workflow are to route information, send notification, and define process rule. Although some history is maintained automatically by Oracle Workflow, it will not be considered as creating audit trails.

An internal name for a Workflow Builder component must be in uppercase, have no spaces, and be  unique within item type.

Activity cost > Workflow Engine threshold activity is deferred when the activity cost is greater than the Workflow Engine threshold. If the activity cost = 0 or if the activity cost is less than the Workflow Engine threshold, the activity will become Active.

A user must be a role. A role cannot be created in the Workflow Builder. Having one active responsibility is not a requirement for a user to be a role. A role can have more than one user.

Design & create a Workflow using Oracle Workflow Builder start the Oracle Workflow process from pl/sql  integrate Oracle Workflow with pl/sql for validation and DML etc.  build Oracle Workflow Notifications attach roles/people to notifications in Oracle Workflow.

Oracle workflow is a graphical tool that allows you to create, track and modify business process, embedded in the oracle database server,  it can monitor the workflow activity statuses.

Benefits:

  1. Create a clear business process definition
  2. Automate the business routings
  3. Monitor the process
  4. Allow users to define their own business process to suit their organization needs.
  5. Readily change the business process definitions in case of a change business process

When you have more than one process associated with an item type, you need a selector to select a process. You use the Role Resolution standard activity to perform role resolution. Voting is another standard activity. Multiple result codes drive different tritions, but this is not related to the selector.

The Workflow Builder in Oracle Workflow is the graphical interface for workflow processes. The Workflow Engine drives items through workflow processes. The Workflow Monitor allows you to view and monitor workflow process instances and the Workflow Definitions Loader load workflow definitions from a text file or database.

If cost of the workflow activity is greater than 50, then the workflow activity will be processed in background mode only, and it won’t be processed in online mode.

Set the user-friendly identifier for an item.  The SetItemUserKey API is used for setting a user-friendly identifier for an item.

Activity cost > Workflow Engine threshold

An activity is deferred when the activity cost is greater than the Workflow Engine threshold. If the activity cost = 0 or if the activity cost is less than the Workflow Engine threshold, the activity will become Active.

The Workflow Engine issues a savepoint when a function activity is completed. The Workflow Engine never issues a commit; the calling application issues a commit. The Workflow Engine does not generate a log file or notify users.

Common application processes Common application processes come before the product family processes, which come before product-specific processes.  Common financial is one of the product family processes. It does not come before product family processes.

You can eiter use wf_engine.start_process  or  you can attach a runnable process such that it subscribes to a workflow event.