Вы находитесь на странице: 1из 2

1. The Workflow Event'oracle.apps.gml.po.receipt.

created' needs to be enabled an


d subscribed to.
Use the 'Add Event Subscription' option under the 'Workflow Administrator Web Ap
plications'
Responsibility.
Run this script to find this out
select e.name
,e.status event_status
,s.status subscription_status
,nvl(s.PHASE,0) SUBSCRIPTION_PHASE
,s.LICENSED_FLAG subscription_LICENSED_FLAG
,e.LICENSED_FLAG event_LICENSED_FLAG
from wf_events e
,WF_EVENT_SUBSCRIPTIONS S
where
e.name like '%oracle.apps.gml.po.receipt%'
AND S.EVENT_FILTER_GUID = E.GUID
/

2. Valid specifications for the relevant item(s) will need to be created. Use th
e Quality
Manager responsibility in OPM. Ensure these have the correct status (Approved fo
r General Use).
These will also have to have the correct validity rules with the correct status
(Approved for General Use).
Please refer to Oracle Process Manufacturing Quality Managers User's Guide for m
ore details.
N.B If the Validity Rule has the checkbox 'Create Samples Automatically' checked
, an approval
will not be required. Step 3 below can then be skipped. In this circumstance, th
e sample
will be created with a 'Planned' status and no notification will be generated.
3. An Approval will need to be created Approvals Management (AME).
The transaction name in this example is 'Process Quality Receiving Transaction S
ample Creation'.
This will determine under what circumstances the Workflow will be activated and
who should
receive the notifications.
Please refer to the Approval Management User Guide for more details.
It is suggested that initially a simple approval process is used i.e. one withou
t any
ordinary conditions and with an approval group that contains one user.
Once this has been made to work, the process can be refined later.
It is also necessary that the approval is tested using the 'Test' tab in AME.
Check that there are no errors and the correct approval group can be seen. Use t
he correct
transaction id from an existing transaction. In the above example, the transacti
on_id
from rcv_transactions. This will help in determing that the Approval is working
correctly.
4. Bear in mind that generally work flow actions are deferred and placed in the
WF_DEFERRED
queue as by default the Phase on the Workflow event is generally set to 101.
The Workflow Agent Listener concurrent process will need to run to get the workf
low actions
processed. This can be found under the System Administrator Responsibility. This
needs
to be run for the WF_DEFERRED Agent Name.
Note. This NOT the same process as the Workflow Background Process.
If this process cannot be found it is probably because it is not enabled in whic
h case,
query back the Concurrent program 'Workflow Agent Listener' and check the Enable
d check box.
Navigation path System Administrator>Concurrent>Program>Define

5. If you have done your setup correctly, the person nominated in step 3 above s
hould then
see a workflow notification indicating that they need to take a sample.
6. If a notification is not seen, track down the Workflow process in the 'Workfl
ow Administrator
Web Applications' Responsibility 'Find Processes' form and check it out. The 'Wo
rkflow Status
Monitor' can also be used.
The workflow type in this case is 'OPM Quality Management Sample Creation'.
7. If you still have a problem, run the wfstat.sql script (located in $FND_TOP/s
ql) for the
workflow in question and send it to support.
It will ask for two parameters, the Workflow Type (in this example 'GMDQMSMC') a
nd the Event Key.
For the event 'oracle.apps.gml.po.receipt.created', this will start with the tra
nsaction id from
rcv_transactions. Both of can be found when investigating the workflow on the Wo
rkflow Status Monitor.8. A further approach that can be tried to investigate why
no notifications are being received etc would be to 'Debug' the workflow. This
is how. 8a. Set the profile option value FND: Debug Log Enabled to 'Yes' (intern
al name AFLOG_ENABLED)8b. Set the profile option value FND: Debug Log Level to '
Statement' 8c Create a receipt and check that the workflow has run etc.8d. In t
he 'utl_file_dir' directory on the server, you will find a file starting with 'S
ampleCreation'. This script will show you where this is select value from v$para
meter where name='utl_file_dir' 8e. Set the profile option value FND: Debug Log
Enabled to 'No'. N.B this is VERY important. Many applicationsprocesses use this
debug technique and while the profile option is set they are all being 'debugge
d' and debug files created .
--------------------------------------------------------------------------------

Вам также может понравиться