Skip navigation FileNet logo
Glossary  |  Help Directory  
  Help for Rules Engine Administration
  Search  |  Index
Process Reference  
Rules Engine Administration
Installing and enabling
Rules repository
Transferring workflows
Workflow and repository versions
Starting Rules Builder
Creating and exporting rules
Reinitializing regions
Troubleshooting
   

Restoring a workflow repository for a reinitialized isolated region

The association between the version of a workflow definition in an isolated region and the version of a workflow repository in the Rules repository is stored in the Process Engine database. These associations are deleted, along with any transferred workflows, when an isolated region is reinitialized. However, once the initialization is complete, you can reestablish the associations by retransferring the workflow definitions and reimporting the workflow repositories. The transferred workflow definition becomes version 1 in the Process Engine database. You must manually recreate version 1 of the workflow repository and export the rule set, as explained in the procedures below.

NOTE The workflow repository you recreate must contain the same rule sets (rule packages), maps, and data fields as the workflow definition. However, the individual rules within the rule packages may be different.

To restore workflow definitions, workflow repositories, and rule sets for a reinitialized isolated region

  1. In ILOG Rules Builder, export the workflow repository to an XML file before you reinitialize the isolated region.
  2. In Task Manager, stop the Rules Engine.

    CAUTION If the Rules Engine is running when you reinitialize an isolated region, two extra workflow repositories are created in the isolated region folder: WorkObject and WorkObjectEx. If these workflow repositories are unintentionally created, do not delete them. Deleting workflow repositories may result in unexpected behavior in running workflows.
  3. Reinitialize the isolated region.
  4. Open Windows Explorer or a command prompt window and delete the folders for the isolated region under:

    (Windows) fnsw_loc\connectors\ILOG\repositories and fnsw_loc\connectors\ILOG\rules\
    (UNIX) fnsw/local/connectors/ILOG/repositories and fnsw/local/connectors/ILOG/rules/

  5. In Task Manager, start the Rules Engine.
  6. Transfer the workflow definition from Process Designer.
  7. In ILOG Rules Builder, recreate the workflow repository.
  8. Export the rule set for each workflow repository.

To export a workflow repository

  1. In ILOG Rules Builder, open the workflow repository you want to export.
  2. Select File > Export > Repository File from the menu bar.
  3. In the Export Repository dialog, save the workflow repository file in an .XML format to a temporary location.
  4. Click Save.

To recreate a workflow repository

  1. In ILOG Rules Builder, open the workflow repository you want to recreate.
  2. Select View > Repository Explorer.
  3. Select File > Import > Repository File.
  4. In the Import Repository dialog, browse to and select the XML workflow repository file you exported.
  5. Click Open.
  6. If the exported workflow repository file contains more than one project, the Project Choose dialog appears. Select the version of the workflow repository you want to restore and click OK. Rules Builder adds the imported workflow repository to the Repository Explorer. The following figure shows an example of a workflow repository after an import.



  7. Ensure that version 1 of the workflow repository is the current project by doing the following:
    1. At the bottom of the left pane, select the Project tab.
    2. In the Project drop-down menu, select version 1 of the workflow repository.



    3. At the bottom of the left pane, select the Repository tab.
  8. Delete all rule packages in the version 1 of the workflow repository by doing the following:
    1. Expand the rules<workflow_repository_name>_1 node.
    2. Select all rule packages under this node.
    3. Select Edit > Delete and click OK when prompted to confirm the deletion.
  9. Copy all rule packages from source project (the version of the workflow you want to restore) to the rules<workflow_repository_name>_1 node by doing the following:
    1. Expand the rules node of the source project.
    2. Select all rule packages under this node.
    3. Select Edit > Copy.
    4. Select the rules<workflow_repository_name>_1 node.
    5. Select Edit > Paste.
  10. Delete the imported workflow repository nodes by doing the following. Note that the library nodes cannot be deleted.
    1. Select the imported rules<workflow_repository_name> and <workflow_repository_name> nodes.
      NOTE Do not select version 1 of these nodes.
    2. Select Edit > Delete.
    3. Click OK when asked to confirm the deletion.



  11. Select File > Save Repository from the menu bar.