The action settings are used to setup different actions that may be called from within a profile via an action button, the action menu from the Cargo Dispatch interface or from an external call to the Cargo system. To add a new, duplicate an existing or delete the selected action item, use the buttons below the action list.
Actions are grouped into action sets and it is the actual action set that is called when actions should be executed.
An action set may contain a single action or many actions. If the action set consists of many actions the individual actions may be moved up or down in the action set in order to execute them in the correct order. If one action for example is using the result from another action it is important that the actions are ordered correctly.
The settings for an action set.
Image 12.1-1 The action set settings
A action is a part of a action set. Each action in an action set is executed when the action set is called. There are many different types of actions seen in the table below.
Table 12.2-1 Action types
Action types and their individual properties |
The send email action settings.
Image 12.2-1 The send email action
This action will send an email to one or more recipients. The recepients may be static or taken from values sent to the action.
Setting parameter |
Description |
Name |
The name of the action. |
SMTP |
The selected SMTP entry will be used when sending the email. All added SMTP entries may be seen/edited in the SMTP setting tab in the admin interface. |
To |
This field will contain all the recepients of the email. If more than one recepient is wanted, the addresses should be separated with comma. If an address from the profile input form is wanted the macro ACTION_PARAMETER_IN should be used.
|
CC |
The email addresses to send a CC to. |
BCC |
The email addresses to send a BCC to. |
Subject |
The email subject. |
Email body |
The body of the email. This may be HTML formatted by surrounding the text with <html><body> and </body></html>, e.g. <html><body>The HTML text goes here</body></html> |
Attachments |
Optional attachments. |
|
The copy action settings.
Image 12.2-3 The copy action
This action is only valid from the dispatch interface where the selected job's file(s) will be copied.
Setting parameter |
Description |
Name |
The name of the action. |
Folder |
The folder, relative to the server, where the file should be copied. |
File name change |
If the file name is to be changed the value is entered here. |
Copy the job and add the copied file in this new job |
Select this option if the copied file automatically should create a new job and the copied file will be added into this newly created job. |
Add the copied file to the existing job |
Select this option if the copied file should be added to the job where the source file belong. |
Ignore the copied file |
Select this option if the copied file should not be added to the Cargo system. |
|
The move action settings.
Image 12.2-4 The move action
This action is only valid from the dispatch interface where the selected job's file(s) will be moved.
Setting parameter |
Description |
Name |
The name of the action. |
Folder |
The folder, relative to the server, where the file should be moved. |
File name change |
If the file name is to be changed the value is entered here. |
Update job file |
If this option is selected the job will be updated with the new location for the file. |
Delete file from job |
If this option is selected the moved file will be removed from the job where it belongs. |
|
The unzip action settings.
Image 12.2-5 The unzip action
Setting parameter |
Description |
Name |
The name of the action. |
Unzipped folder |
The folder, relative to the server, where the result file will be placed. |
File name change |
If the file name is to be changed the value is entered here. Note that this change will affect all the individual unzipped files. |
Delete zip file |
If this option is selected the source zip file will be deleted. |
Attach unzipped file to original file |
If this option is selected the unzipped file will be attached to the original file. |
Attach original to unzipped file |
If this option is selected the original zip file will be attached to the unzipped file. |
Copy the job and add the result file in this new job |
Select this option if the unzipped file automatically should create a new job and the unzipped file will be added into this newly created job. |
Add unzipped files to job |
Select this if the unzipped files should be added to the current job. |
Ignore result file |
If this option is selected the unzipped files will be ignored by the Cargo system. |
Copy file properties |
If this option is selected the unzipped file will be getting a copy of the original file properties. |
The create text file action settings.
Image 12.2-5 The create text file action
The action will create a text file with the specified content. If more than one file is passed to the action set, each file will result in a text file.
Setting parameter |
Description |
Name |
The name of the action. |
Location |
The full path, relative to the server, where the file should be created. This location must include the file name. |
Text format |
The format for the content to write to the file. Default is UTF-8. |
Text |
The text skeleton for the result file.
If a file should append the content to an existing file the macro FILE_CONTENT may be used. |
|
The create job related text file action settings.
Image 12.2-6 The create job related text file action
The action will create a text file with the specified content. Only one file is created for each job that is passed to the action set.
Setting parameter |
Description |
Name |
The name of the action. |
Location |
The full path, relative to the server, where the file should be created. This location must include the file name. |
Text format |
The format for the content to write to the file. Default is UTF-8. |
Text |
The text skeleton for the result file.
If a file should append the content to an existing file the macro FILE_CONTENT may be used. |
|
The change job status action settings.
Image 12.2-7 The change job status action
This action will change the status of the related job that was passed to the action set.
Setting parameter |
Description |
Name |
The name of the action. |
Status |
The status that the job will get. Either use a static value or a dynamically value (from for example an action input dialog) |
|
The change file status action settings.
Image 12.2-2 The change file status action
This action will change the file status to the selected value.
Setting parameter |
Description |
Name |
The name of the action. |
Status |
The status that the file will get. Either use a static value or a dynamically value (from for example an action input dialog) |
|
The job search action settings.
Image 12.2-8 The job search action
The search action will only perform a search in the Cargo system. Nothing will be affected by this search. The search result may be used by actions following this action.
Setting parameter |
Description |
Name |
The name of the action. |
ID |
This is the search ID which may be used in actions following this particular action. The macros FOR_EACH_JOB_IN_SEARCH and FOR_EACH_JOB_GROUP_IN_SEARCH may for example use the search result. |
Search parameters |
The search parameters are the filter to use when doing the search. More than one parameter may be added. The valid parameters are;
- Job ID: The result will only have jobs with this ID.
- Job status: The result will only have jobs with this status ID.
- Job property: This data has a meta data ID (this could for example be the component ID from a profile input form) and the value that this meta data should have to be in the result.
Note when calling a job search action from external source
When an action is called from external source the parameters to the call may be used for example for the value field using the macto ACTION_PARAMETER_IN. The parameter to this macro must be used carefully, see the macro section for more information regarding this macro.
- Profile ID: The result will only have jobs from this profile ID.
|
|
The job creation action settings.
Image 12.2-9 The job creation action
This action will create a new job in the Cargo system.
Setting parameter |
Description |
Name |
The name of the action. |
Login |
The login name for the user that will create this job. Make sure that the user are enabled to access the profile that is specified in the profile ID below. |
Password |
The password for the named login above. |
Profile |
The profile to use when creating the job. |
Move original |
If this option is selected the original file will be moved by the Cargo server. This is a good thing to use if the action is used in a hotfolder setup. |
|
The save job action settings.
Image 12.2-10 The save job action
This action will save an existing job in the Cargo system.
Setting parameter |
Description |
Name |
The name of the action. |
Login |
The login name for the user that will save this job. Make sure that the user are enabled to access the profile that is specified in the profile ID below. |
Password |
The password for the named login above. |
Job properties |
Additional meta data to save with the job. |
|
The delete file from job action settings.
Image 12.2-11 The delete file from job action
This action will delete the file that is passed to the action from the containing job.
Setting parameter |
Description |
Name |
The name of the action. |
|