7. Tables
- Workflow Definition
SQL:
-- 使用如下sql查询一个流程的连接信息:
select b.activity_name, b.instance_label, a.result_code "RESULT_CODE", 'TO',
c.activity_name, c.instance_label
from (select * from wf_activity_transitions
start with from_process_activity = (select instance_id from
wf_process_activities where
process_item_type = 'LEAVEREQ' AND PROCESS_VERSION = 5 AND
ACTIVITY_NAME =
'START') connect by prior to_process_activity = from_process_activity and
result_code <>
'#TIMEOUT') a left outer join wf_process_activities b on
a.from_process_activity =
b.instance_id left outer join wf_process_activities c on a.to_process_activity
= c.instance_id
8, wf_messages_vl
消息视图, 根据会话的语言设置返回相应的记录. 字段:
TYPE, NAME, DISPLAY_NAME, SUBJECT, BODY
Note:The three views are mapped in the following way. WF_USERS is mapped to all employees with active primary assignments. WF_ROLES is mapped to all users listed in WF_USERS and to all positions defined as workflow roles. WF_USER_ROLES is mapped to the combination of WF_ROLES and WF_USERS.http://oracleapps4u.com/blog/category/wf_local_roles/For example:OPERATIONS is a user in WF_USERS, there’s also a role in WF_ROLES. There is a mapping user_name(‘OPERATIONS ’) role_name(‘OPERATIONS ’) in WF_USER_ROLES.