Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page allows you to create actions with one or more post-functions that can be used in the Shared Action post-function. The page also lists the workflow transitions where the Shared action is being used. This feature can be used to share the configuration of a single post-function, or of a sequence of post-functions, between multiple transitions and workflows, thereby greatly simplifying the maintenance of your workflows.

...

  1. Click on “Edit” for the action

    1. Click on “Remove” for the post-function

  2. Click on “Save”

Delete an action


Note

Before deleting a shared action, make sure it is not referenced You cannot delete a Shared action when it is referenced in any Shared Action post-function. You need to remove the references to delete the Shared Action.


  1. Click on “Delete” for the action

  2. Click on “OK”

  3. The sequence is deleted.

Passing variables within a sequence

Using the {% setContextVar %} Nunjucks tag, you can pass data from one post-function to its subsequent post-functions.

  • transition.context: Holds all the context variables added in the current post-function. For example, if you create a context variable myVar in the first post-function of the sequence:

    Code Block
    languagejs
    linenumberstrue
    {% setContextVar myVar = "a value" %}

    This variable will then be available to subsequent post-functions as:

    Code Block
    languagejs
    linenumberstrue
    {{ transition.context.myVar }}

    (warning) Note that this variable will not be available in the Nunjucks tester.

...