This task allows for exporting and importing process instances of a given Fuego Server.
All instances of all Active processes are exported. Deprecated instances are neither exported nor imported.
This task needs access to a Fuego Directory, so it must be
contained in a fuego:session element.
Because process metadata is retrieved from the Directory, the processes must be deployed for this task to work.
When importing, a properties file may be specified for mapping instance variable names. This allows for instance variables to be imported with a name different from the original.
Example 1 (export instances in one file per Server table in the database):
...
<!-- Open a session to the Fuego directory -->
<fuego:session passportref="fuego.passport">
<fuego:instancesmanager directoryPath="/tmp/export/"
action="export"
engineid="${export.engineid}"/>
</fuego:session>
...
Example 2 (import instances exported in example 1):
...
<fuego:session passportref="fuego.passport">
<fuego:instancesmanager directoryPath="/tmp/export/"
action="import"
engineid="${import.engineid}"/>
</fuego:session>
...
| Attribute | Description | Type | Required? |
| engineid |
Name (id) of the Fuego Server.
Deprecated: use serverid |
String | No |
| serverid | Name (id) of the Fuego Server. | String | Yes |
| fieldsmappingfile |
File location to a properties file containing a mapping between old instance variable names and new ones. |
File | No Defaults to no mapping file. |
| directorypath |
Directory name where the output files will be generated (export) or the import files will be read from (import). |
File | Yes |
| action | Whether to execute an export or an import. | String ["import", "export"] | Yes |
| counterstep | Number of steps in which the progress is shown. | int | No Defaults to 100. |
| Attribute | Description | Type | Required |
| name | String | ? |