bea.com | products | dev2dev | support | askBEA |
![]() |
![]() |
|
![]() |
e-docs > WebLogic Platform > WebLogic Integration > BPM Topics > Using the Studio > Importing and Exporting Workflow Packages |
Using the Studio
|
Importing and Exporting Workflow Packages
The following sections show you how to import and export workflow packages from and to Java archive files and how to import and export template definitions from and to XML files:
About Import/Export
WebLogic Integration provides the capability of exporting and importing workflow objects to and from Java Archive (JAR) files. This capability allows you to export and import templates, template definitions, business operations, business calendars, event key tables, and XML repository items. Organizations, users, and roles cannot be exported or imported.
You can mark exported packages as published packages, which marks their contents as read-only when they are imported. In published templates, new template definitions cannot be created. However, published templates and template definitions may be deleted.
You can also assign password protection to exported packages to prevent them from unauthorized import.
Exporting Workflow Packages
To export a workflow package:
Figure 11-1 Export: Select File Dialog Box
If you specified an existing JAR file that is not password protected, the Export: Select Components to Export dialog box is displayed.
If you specified an existing JAR file that is password protected, the Export: Enter Password dialog box is displayed. Enter the necessary password and click Next to display to display the Export: Select Components to Export dialog box, or click Back to specify an alternate file.
Figure 11-2 Export: Select Components to Export Dialog Box
If you export a template definition that specifies a due date for a task, and the due date is set using a business calendar, be sure to export the calendar along with the template definition.
Similarly, if you export a template definition that uses the XSL Transform action, be sure to export the XML entities in the repository required by the XSL Transform action. The XML entities could be the XSLT template document or the XML input document.
Importing Workflow Packages
If you are importing a template definition from a published package (that is, a package that was previously exported and marked as published), and a template does not exist on the target system, a published template is automatically created. If, however, you are importing a published template definition into an existing template, the existing template must also be published. You cannot import a published template definition into an unpublished template.
Similarly, if you are importing a template definition from an unpublished package and a template does not exist on the target system, an unpublished template is automatically created. To import an unpublished template definition into an existing template, the existing template must also be unpublished. You cannot import an unpublished template definition into an published template.
During the import process, a warning is displayed if you are attempting to import an object with the same name as an object that already exists on your system. You can overwrite templates, business operations, and business calendars. You are not permitted to overwrite template definitions, so multiple copies will be created instead.
After import, you can associate templates with additional organizations by using the Template Properties dialog box and checking additional organizations (see Updating Template Properties for procedures). Do not re-import the same template into additional organizations, as this will simply create multiple template definitions.
To import a workflow package:
Figure 11-3 Import: Select File Dialog Box
If the package you want to import is not password-protected, the Import: Select Components to Import dialog box is displayed.
If the package you want to import is password-protected, the Import: Enter Password dialog box is displayed. Enter the necessary password and click Next to display the Import: Select Components to Import dialog box.
Figure 11-4 Import: Select Components to Import Dialog Box
Importing and Exporting Workflow Template Definitions from and to XML Files
For compatibility with earlier versions of WebLogic Process Integrator, you can export a workflow template definition to an XML file on any drive mapped on your computer, and import a workflow template definition (that was previously exported), in XML format, into the Studio to create a new workflow template definition.
Note: If you do not need to maintain compatibility with older versions of WebLogic Process Integrator, we recommend that you take advantage of the Import/Export Package facility described earlier in this section.
Exporting Workflow Template Definitions to XML
To export a workflow template definition:
Importing Workflow Template Definitions from XML
Workflow template definitions imported from an XML file are always marked as inactive. Before an imported workflow template definition can be instantiated, you must change the definition to active in the Template Definition dialog box. For details, see Updating, Labeling, and Activating a Template Definition.
If a template does not exist, you must create one before you can import a template definition. For details about creating a template, see Creating a Workflow Template.
Note: In some cases, importing workflows may display warning messages. You must define any business operations or event keys that are referenced by imported workflows, and redefine Perform Business Operation or Start Workflow actions contained in imported workflows.
To import a workflow template definition, proceed as follows:
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |