File Actions¶
File Actions allow one to automate the execution of actions when new files are added a project. An action consists of the following:
- A glob pattern used for matching against new files. The action will only execute if the glob pattern matches against the new file name.
- A Workflow to execute against the new file. In the future, new action types will be added to allow one to perform a variety of steps when new files are uploaded.
In order to be able to create File Actions in a project, you must have the Rules Admin
access right.
Creating a File Action¶
-
Navigate to the File Actions web console and click the
Add Action
button in the top header. -
Provide a name for the Action and a glob pattern to use for matching files.
-
Select the master CWL Workflow file
-
Provide values for any string inputs. File inputs will automatically be populated with the newly uploaded file. For string inputs, one can use
{{id}}
or{{name}}
to substitute in the name or ID of the newly uploaded file. -
Select any CWL dependency files, if needed
-
Review the Action settings and click Next to create the action