Editing a Workflow
You can edit any existing workflow model to:
- define steps and their parameters
- configure workflow properties, including stages, whether the workflow is transient and/or uses multiple resources
Editing a Default and/or Legacy (out-of-the-box) workflow has an additional step, to ensure that a safe copy is taken prior to your changes being made.
When updates to your workflow are complete you must use Sync to Generate a Runtime Model. See Sync your Workflow for details.
Sync your Workflow - Generate a Runtime Model
Sync (right in the editor toolbar) generates a runtime model. The runtime model is the model actually used when a user starts a workflow. If you do not Sync your changes, then the changes will not be available at runtime.
When you (or any other user) make any changes to the workflow you must use Sync to generate a runtime model - even when individual dialogs (for example, for steps) have had their own save options.
When the changes are synchronized with the runtime (saved) model, Synched is shown instead.
Some steps have mandatory fields and/or built in validation. When these conditions are not satisfied an error is shown when you attempt to Sync the model. For example, when no participant has been defined for a Participant step:
Editing a Default or Legacy Workflow for the First Time
When you open a Default and/or Legacy model for editing:
-
The Steps browser is not available (left side).
-
There is an Edit action available in the toolbar (right side).
-
Initially the model, and its properties, is presented in read-only mode as:
- Default workflows are in
/libs
- Legacy workflows are in
/etc
Selecting Edit will:
- Default workflows are in
-
take a copy of the workflow into
/conf
-
make the Steps browser available
-
enable you to make changes
Adding a Step to a Model
Add steps to your model to represent the activity to perform - each step performs a specific activity. A selection of step components are available in a standard AEM instance.
When you edit a model, the available steps appear in the various groups of the Steps browser. For example:
To add steps to your workflow model:
-
Open an existing workflow model for editing. From the Workflows Model console, select the required model, then Edit.
-
Open the Steps browser; using Toggle Side Panel, at the far left of the top toolbar. Here you can:
- Filter for specific steps.
- Use the drop-down selector to limit the selection to a specific group of steps.
- Select the Show Description icon
-
Drag the appropriate step(s) to the required location in the model.
For example, a Participant Step.
Once added to the flow you can configure the step.
-
Add as many steps, or other updates, as required.
At run time, steps are executed in the order in which they appear in the model. After adding step components, you can drag them to a different location in the model.
You can also copy, cut, paste, group or delete existing steps; as with the page editor.
Split steps can also be collapsed/expanded using the toolbar option:
-
Confirm the changes with Sync (editor toolbar) to generate the runtime model.
See Sync your Workflow for details.
Configuring a Workflow Step
You can Configure and customize the behavior of a workflow step using the Step Properties dialogs.
-
To open the Step Properties dialog for a step either:
-
Click the* *step in the workflow model and select Configure from the component toolbar.
-
Double-click the step.
NOTE
For information about the primary step components that are installed with AEM, see Workflow Steps Reference. -
-
Configure the Step Properties as required; the properties available depend on the step type, there may also be several tabs available. For example, the default Participant Step, present in a new workflow as
Step 1
: -
Confirm your updates with the tick.
-
Confirm the changes with Sync (editor toolbar) to generate the runtime model.
See Sync your Workflow for details.
Creating a Transient Workflow
You can create a Transient workflow model when creating a model, or by editing an existing one:
-
Open the workflow model for editing.
-
Select Workflow Model Properties from the toolbar.
-
In the dialog activate Transient Workflow (or deactivate if necessary):
-
Confirm the change with Save & Close; followed by Sync (editor toolbar) to generate the runtime model.
See Sync your Workflow for details.
Make workflow models available in Touch UI
If a workflow model is present in Classic UI, but missing in the selection popup menu in the Timeline rail of Touch UI, then follow the configuration to make it available. The following steps illustrates using the workflow model called Request for Activation.
-
Confirm that the model is not available in Touch-enabled UI. Access an asset using
/assets.html/content/dam
path. Select an asset. Open Timeline in left rail. Click Start Workflow and confirm that the Request for Activation model is not present in the popup list. -
Navigate through Tools > General > Tagging. Select Workflow.
-
Select Create > Create Tag. Set Title as
DAM
and Name asdam
. Select Submit.
-
Navigate to Tools > Workflow > Models. Select Request for Activation, then select Edit.
-
Select Edit, open the Page Information menu, and from there select Open Properties and go to the Basic tab (if not already open).
-
Add
Workflow : DAM
to Tags field. Confirm the selection with the check (tick). -
Confirm the addition of the tag with Save & Close.
-
Complete the process with Sync. The workflow is now available in the Touch-enabled UI.