Create an Upload Rule
-
From the Data Exchange section of the action bar,
click Upload
, and drop it on
the process diagram.
-
Double-click the Upload
on the process
diagram to open the Upload Editor.
-
In the Custom
tab,
click Add new upload rule
.
-
Enter a Name for the rule.
- Optional:
Select Keep history of this file to save each instance of the
file as part of the job results.
You can view the instances in the Results Analytics
app.
-
In the list of rules on the left side of the editor, select
Enable to activate the upload rule at run time.
If you do not select Enable, the rule is ignored.
Configure the Upload Options
-
Enter the names of one or more Files to upload from the
working directory of an activity.
You can use a wildcard to upload multiple files from a document. You can also enter a
parameter expression and a comma-separated list; for example,
${myDocument}, *.doc.
- Optional:
Enter the Comments to add a description for the files you are
uploading.
-
If you are uploading an object other than a document, do one of the following to add
a Custom processor:
- Click Select to search for and select a custom upload
connector.
- Click Configure to view and edit the custom upload
configuration.
A custom processor allows you to use a selected program instead of the default upload
of files. You can also use a custom processor to run the selected program on the
working directory. For example, you can use a .zip program to archive
all the uploaded files in the working directory.
Configure the Destination Options
-
From the Selection options, select one of the following:
| Option | Description |
|---|
| Content |
Uploads the content to the working directory. |
| Object Parameter |
Uploads a specific object parameter. Choose an existing object parameter, or
click to search for and select an object
parameter. |
-
If you selected Content, do the following:
-
Select the Category in which to share the content:
| Option |
Description |
| Results |
Stores documents or objects that represent the results of the
simulation process or activity, such as results files, updated CAD models,
reports, animations, and plots. |
| Specifications |
Stores documents or objects that provide reference information for
running the simulation process, such as requirements, scripts, documents
containing dimensions or material data, instructions, or best
practices. |
| Internal Data |
Stores documents that contain intermediate results for a simulation
process or activity, such as a restart file or a replay file. |
| From Source Path |
Stores documents from the source path. |
Note:
The category is assigned based on the category and, if applicable, folder in
the source path of the content. For example, an uploaded file with the path
Specifications/Folder_1/loads.txt would be uploaded into
the Folder_1 folder in the specifications category.
-
From the Specification options, select one of the
following:
| Option |
Description |
| Content Title = File Name |
Uses the file name as the content title for the new document. |
| User Specified |
Allows you to upload an existing document. You can upload the
following document types:
- Simulation Document - NonVersioned
- Simulation Document - Versioned
-
Note:
You can upload only files with the same extension as files
already in the document. If a file identical to an existing file is
uploaded, the existing file is overwritten.Automation Process
Composer does not support engineering document duplication, which might
affect parallel execution.
- Document
|
-
Select an Attribute Group to link to the uploaded
content.
Configure the Creation Options
If the rule creates a new document, you can select the document type and specify the
attributes.
-
From the document Type options, select one of the
following:
| Option | Description |
|---|
| Simulation Document - NonVersioned |
Creates a simulation document and uploads the nonversioned files from the working
directory. A nonversioned file does not have any versioning information.
Automation Process
Composer overwrites the original file when you check it back in.
For more information, see Versioned and Non-Versioned Files
|
| Simulation Document - Versioned |
Creates a simulation document and uploads the versioned files from the working
directory.
When you first check in or download a versioned file, Automation Process
Composer sets its version number to 1. When you check in an
updated version of the file, Automation Process
Composer increments its version to 2.
For more information, see Versioned and Non-Versioned Files
|
| Document |
Creates a document, and uploads the files from the working directory. You can
upload multiple files in the document.
|
- Optional:
If you selected the Document type, do the following to add the
classification attributes to the documents that you upload:
-
Next to the IP Classification field, click
Select.
-
Search for and select the type Class that contains the
classification attributes.
-
From the Ownership options, select one of the following:
| Option | Description |
|---|
| Referenced |
Select this option if the document is referenced. A referenced document allows
multiple objects to refer to the same item. |
| Owned |
Select this option if the document is owned by the simulation process or
activity. |
Automation Process
Composer updates owned content but does not update referenced content (that is, the referenced
document is not updated).
-
Specify the Impact:
| Option | Description |
|---|
| Output |
Represents the content defined as an output. |
| Input/Output |
Represents the content defined as an input as well as an output. |
| Input |
Represents the content defined as an input. |
| None |
Represents that there is no impact for the specified content. |
- Optional:
Select Retain only latest version of file to keep only the
latest version of the file. If you clear the selection, the adapter retains all versions
of the file.
Note:
This option is available only when you select Document as
the document type.
Configure the Customer Extensions
Before you begin:
- Create an upload rule. For more information, see Create an Upload Rule
- You must have created and deployed a customer extension.
The Upload adapter allows you to configure a customer extension only when you select a
Document.
Optional:
From the Selection options, select a customer extension.
|