 |
 |
|
|
|
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
- In ILOG Rules Builder, export
the workflow repository to an XML file
before you reinitialize the isolated region.
- 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.
- Reinitialize
the isolated region.
- 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/
- In Task Manager, start
the Rules Engine.
- Transfer
the workflow definition from Process Designer.
- In ILOG Rules Builder, recreate
the workflow repository.
- Export
the rule set for each workflow repository.
To
export a workflow repository
- In ILOG Rules Builder, open the workflow
repository you want to export.
- Select File > Export > Repository File
from the menu bar.
- In the Export Repository dialog, save the
workflow repository file in an .XML format
to a temporary location.
- Click Save.
To
recreate a workflow repository
- In ILOG Rules Builder, open the workflow
repository you want to recreate.
- Select View > Repository Explorer.
- Select File > Import > Repository
File.
- In the Import Repository dialog, browse
to and select the XML workflow repository
file you exported.
- Click Open.
- 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.

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

- At the bottom of the left pane, select
the Repository tab.
- Delete all rule packages in the version
1 of the workflow repository by doing the
following:
- Expand the rules<workflow_repository_name>_1
node.
- Select all rule packages under this
node.
- Select Edit > Delete and click
OK when prompted to confirm the
deletion.
- 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:
- Expand the rules node of the
source project.
- Select all rule packages under this
node.
- Select Edit > Copy.
- Select the rules<workflow_repository_name>_1
node.
- Select Edit > Paste.
- Delete the imported workflow repository
nodes by doing the following. Note that the
library nodes cannot be deleted.
- Select the imported rules<workflow_repository_name>
and <workflow_repository_name>
nodes.
NOTE Do
not select version 1 of these nodes.
- Select Edit > Delete.
- Click OK when asked to confirm
the deletion.

- Select File > Save Repository
from the menu bar.
|