Creating and using actions
Actions are used to deploy content and to configure channels:
- Actions used to deploy content are identified by tasks configured within the activity libraries of processes (see Creating-and-managing-processes-and-content-process-sets). The first time that a specific action is processed during a deployment, it is pulled into the package instance so that it is consistent throughout the lifetime of that instance. You can override this behavior at the system level by assigning the Store Actions In Instance system property (creating the store_actions_in_instance property, if necessary) the value of N (no). The result is that during a deployment, each time a process requests an action, the action comes from the actions repository and not from the stored instance.
- Actions used to configure channels are identified by the Config Get and Config Set actions associated with individual packs. The Config Set actions are processed when a deployment process uses the Process Configuration library. The Config Get actions are processed for managed channels after the deployment of content, or during the processing of a channel template synchronization or a schedule.
The system categorizes scripts by interface type (pack) and platform, and provides a label to reference the script sets. This mechanism enables script references to become OS-independent. Because the system knows which operating system is processing a particular activity, it can use the action label to specify the appropriate action script for that platform.
Properties that are associated with a package are made available to deployment actions and commands. You can set or change the properties when you create a package instance, as well as for each deployment of an instance. The properties become environment variables that the actions or commands can access.
To create a new pack
- Click the Define tab.
- In the Manage box on the left, click Actions.
- Click New Pack on the right.
- Enter an appropriate name for the pack.
Click the Submit checkmark icon.
To add an action to a pack
- Click the Define tab.
- In the Manage box on the left, click Actions.
- Click New Action.
- Enter an appropriate label for the action.
From the Pack menu, select the pack to associate with the action.
From the Platform menu, select an appropriate platform for the action.Type or paste the content for the action. Properties are available to the script and can be tokenized in the script, using the following format: ${<PROPERTY NAME>}
- Click Save or Save and Exit.
If you were adding an action to a newly created pack, the new pack now appears at the bottom of the list of packs on the Actions list.
To import an existing script as an action
- In the Manage box on the left, click Actions.
- Click New Action.
- On the right of the Label field, click Import.
- Browse to locate the script and select it to import for the action.
The contents appear in the Content pane. - Click Save or Save and Exit.