Bookshelf Home | Contents | Index | PDF |
Siebel Business Process Framework: Workflow Guide > Administering Workflow Policies > About Workflow Policy Administration > Deleting an Obsolete Workflow PolicyTriggers are still in effect at the time you expire or delete policies and shut down Workflow Monitor, and triggers related to expired or deleted policies continue to work since they are attached to database tables until they are deleted from the database. So, between the time you expire policies and the time you finish dropping and recreating triggers, there can be rows triggered for the expired policies in the S_ESCL_REQ table. You can get the error ESC-00054 while starting Workflow Monitor because WorkMon looks for the policies referenced in the S_ESCL_REQ table and finds policies that are inactive or not present. The policies are stored in the S_ESCL_RULE table. Those rows must remain in the S_ESCL_REQ table and must not be processed at all. Given that Use Action Agent is set to FALSE for Workflow Monitor, WorkMon also acts for Action Agent, bypasses the S_ESCL_ACTN_REQ table, and uses only the S_ESCL_REQ table. If you have rows in the S_ESCL_REQ table for policies that are expired or deleted, then you must delete them before starting Workflow Monitor. Reasons for doing this include:
You can delete the rows by RULE_ID, which is the unique identifier for a Workflow Policy. Back up the database prior to doing the delete. Example Queries for Locating Deleted and Expired PoliciesThe following are queries that can help you determine whether you have rows in the S_ESCL_REQ table that are related to deleted or expired policies. Query to Locate Deleted PoliciesTo locate deleted policies, run the following query: select RULE_ID, count(RULE_ID) Query to Locate Expired PoliciesTo locate expired policies run the following query, where sysdate is the Oracle current date-time function: select a.RULE_ID, b.NAME, count (a.RULE_ID), b.EXPIRE_DT, b.SUB_TYPE_CD from S_ESCL_REQ a, S_ESCL_RULE b group by a.RULE_ID, b.NAME, b.EXPIRE_DT, b.SUB_TYPE_CD If you determine that the workflow policies have expired unintentionally and you need to process the rows, then the tasks you can perform include:
You can also take these actions with a policy that has a duration. An example of policies expiring unintentionally is someone forgetting to extend the dates and nobody changed the triggers since the policies expired. |
Siebel Business Process Framework: Workflow Guide | Copyright © 2008, Oracle. All rights reserved. | |