Professional Documents
Culture Documents
Issue Summary
This presentation is follow up on an Oracle EBusiness Suite Workflow issue reported by several WF SIG members at the last WF SIG meeting at Oracle OpenWorld.
If the workflow is running in real time (non-deferred mode) then the database session info is inherited from the users database session.
The workflow is running in this users database session.
Developers Guide, Release 2.6.3,Part No. B1028402 Page 3-5, Item Type Selector Function
Used to: Auto select the runnable process for a given Item Type As a Call Back function to set database session context for deferred activities Page 6-13, Standard API for an Item Type Selector or Callback Function
RUN
This mode returns the Item Types process name to be run
TEST_CTX
The Selector Function is first called in this mode. It is the developers responsibility to determine if the database session info is set correctly If the database session is set correctly return TRUE If the database session is not set correctly return FALSE The call Selector Function in SET_CTX mode
SET_CTX
It is the developers responsibility to correctly set the database session information. The ideal situation is to store session context information in Workflow Attributes. Some modules derive the session context from the source document, (ie. Order Header, Requisition Header, etc.). Again it is up to the development team to decide how/when to do this
Order Management
The selector functions are: Header = OE_STANDARD_WF.OEOH_SELECTOR Line = OE_STANDARD_WF.OEOL_SELECTOR
Within these functions there are if statements which will avoid setting the database session unless the PL/SQL global variable, OE_STANDARD_WF.G_RESET_APPS_CONTEXT is set to true.
Order Management
(cont)
Order Management
(cont)
I have not found exactly how this global variable is being set. However, Oracle Support did say that the Row Who data will not be correct unless the Workflow Background Process is run individually for each of the OM Item Types: OEOH & OEOL
That is impractical at most sites since the there are 50-100 active Item Types, each would require their own Workflow Background Process.
Order Management
(cont)
Order Management
Summary
In summary, dont rely on the database context information being set properly on deferred OM Workflow Processes This translates into inaccurate Row Who data in OM Warn your auditors that this is a known Oracle E-Business Suite deficiency