In a noninteractive mode, you can export the activities using export.xml file. To export activities:
- Go to .../<AdeptiaInstallFolder>/AdeptiaServer/ServerKernel/MigrationUtility folder.
- Open connect_export.xml in the Text Editor and do the following:
- Provide the location of Adeptia Connect Installation directory till Adeptia Server folder in the <SourceInstallDir> tag, for example, C:\Program Files\AdeptiaConnect 3.2\AdeptiaConnect-3.2\ConnectServer\AdeptiaServer.
- Provide the location where you want to create the export zip along with the file name in the <TargetZipLoc> tag, for example, C:/AdeptiaConnect/export.zip.
Specify the activity you want to export. Type A to export all activities or a specific activity and PR to export based on the projects in the <ExportType> tag.
Type the group name to which activity belongs in the <Groups> tag. In connect migration, we can export objects of 1 group at a time, so no option to define multiple groups.
Attribute
Definition
name Enter group name whose activities you want to export in the <Groups> tag, for example, Group_1. activityRefId Set the activity id of the group, for example, 001 for 'Group_1'. projectRefId
Set the project id of the group, for example, 001 for 'Group_1'.
If export type is A then only activityRefId will be consider.
If Export type is PR then only projectRefId will be consider.
Define the list of projects that you want to export. You can export the activities of more than one Project.
Attribute
Definition
projectRefId
Set the project id and this should match with projectRefId defined in the <Groups> tag while exporting the activities based on the projects.
export
Set the value yes or no to define either you want to export the activities of the specific project or not.
Define the activity type that you want to export under <Activities> tag.
You can define multiple activity types as you want. For reference, the list of all activity types is defined in the connect_export.xml file.If you want to export specific activity then add the name or activityid under the specified Activity type. The format of ActivityId is: <id>ActivityID</id>. The format of name is: <name>Name</name>.
Here you also get the flexibility of exporting Transactions and Process flows along with their dependencies.Wildcard characters (“*” and “?”) are also supported in the name of the activity.“*” stands for zero or more characters and “?” stands for a single character. If an activity name under the <name> tag for a particular object contains either of the two characters then all the objects at the source end matching the <name> before “*”(and multiple characters after it) and all characters before “?” (and only one character after it) that belongs to the exported group will be migrated.
For example,
For exporting all File Source activities starting with “FS_” you need to specify the following:
<activity type="FileSource">
<name>FS_*</name>
</activity>For exporting File Source activities with activity id = “010000036202128947281839100086” and “010000036202133067542452000039”, you need to specify the following:
<activity type="FileSource">
<id>010000036202128947281839100086</id>
<id>010000036202133067542452000039</id>
</activity>Define the list of folders or files that you want to export with criteria. You can use these attributes for including or excluding multiple files/sub-folders.
All of the following attributes support wildcards. You can also use multiple wildcards separated by commas (,). If no values are specified for Folder attribute, it considers the whole folder by default.Attribute
Definition
includeSubFolders
To export the specified folder including all the sub-folders.
excludeSubFolders
To export the specified folder excluding the sub-folders.
includeFiles
To export including files.
excludeFiles
To export excluding files.
- Save the file.
- Provide the location of Adeptia Connect Installation directory till Adeptia Server folder in the <SourceInstallDir> tag, for example, C:\Program Files\AdeptiaConnect 3.2\AdeptiaConnect-3.2\ConnectServer\AdeptiaServer.
- Open Command Prompt (Windows) or Terminal (Linux).
- Go to the directory .../<AdeptiaInstallFolder>/ AdeptiaServer/ServerKernel folder.
- Run the following command:
For Windows:
migrationutility.bat –export <path of the export.xml file>
For Linux:
./migrationutility.sh –export <path of the export.xml file>
where,
<path of the export.xml file> is location of export.xml file.
This exports your entities in noninteractive mode.