Configure a TCM pack activity
Use the following procedure to configure a TCM pack activity.
-
Add an activity to the map.
By default, the Configuration tab is open in the properties panel of the activity.
- Change the default Name of the activity to something meaningful.
- On the Type list, select .
-
To connect
TotalAgility
to a TCM Server, select an existing TCM server from the
TCM instance list.
All projects available within the selected TCM instance appear on the Project list.
- On the Pack ID list, select a String variable that holds the ID of a pack returned from the TCM Compose activity.
- On the Project list, select a TCM project.
-
Select either option for
Type.
If the Document pack template or Document template does not correspond to the template used to create the pack, you may get unexpected results when the extraction is performed.
Document pack template (Default)
Displays the document pack templates that belong to the project.
-
On the Document pack template list, select a template.
A document pack template includes one or more templates from a pack in the project. When you select a document pack template, all the templates within the pack are displayed.
-
Extract the documents from the TCM pack:
- Select the Template.
- Click .
- On the
Process list, select the process.
At runtime, for each template that has a process mapped, a job is created on the process.
-
The process must have only two initialization variables in the given order:
-
String: This variable holds the parent job ID of the map in which TCM Pack activity is executed.
-
Document: This variable holds the document for the template.
-
- As the document pack contains multiple templates, you must select the process at least for one template. Selecting process for other templates is optional.
-
- Optional. To add extracted documents from the TCM pack to a
different folder, select a String or Folder variable on the
Folder list.
- At runtime, the corresponding document for that template in the zip file is extracted and added to the folder ID specified. If you do not select a folder, the document is added to its own folder.
- For a template, you can either select a process or folder. If you select both, the document is added to the existing folder, and document variable holds the document for the template.
- Click OK.
Document template
Displays document templates that belong to the project.
-
On the Document template list, select a template.
-
Optional. Extract the document from the TCM pack:
- Select the Template.
- Click .
- On the
Process list, select the process.
At runtime, for each template that has a process mapped, a job is created on the process.
The process must have the following two initialization variables in the given order:
-
String: This variable holds the parent job ID of the map in which TCM Pack activity is executed.
-
Document: This variable holds the document for the template.
-
-
Optional. To add extracted documents from the TCM pack to a folder, select a String or Folder variable on the Folder list.
- At runtime, the corresponding document for that template is extracted and added to the folder ID specified. If you do not select a folder, the document is added to its own folder.
- For a template, you can either select a process or folder. If you select both, the document is added to the existing folder, and document variable holds the document for the template.
-
- Click OK.
- Save the process map.