Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Scripted (Groovy) Condition

A workflow condition which hides/shows a transition based on the result of a Groovy expression

To add the 'Scripted (Groovy) Condition' to a transition:

  1. Click Edit for the workflow that has the transition you wish to configure the condition on.
  2. In the Workflow Designer, select the transition.
  3. Click on Conditions in the properties panel.
  4. Click on Add condition.
  5. Select Scripted (Groovy) Condition from the list of conditions.
  6. Click on Add to add the condition on the transition.
  7. Input a Groovy expression in the Groovy script field.
  8. For information on how to write a 'Groovy expression' see Customizing further with Groovy scripts.
  9. Click on Add to add the condition to the transition.

Related links :

Refer to the Use cases for conditions page for use cases for this condition.

For information on how to write a Groovy script, see Customizing further with Groovy scripts.

When you add this condition to a transition, the add-on checks the result of the Groovy expression. If the expression returns true or a Groovy truthy, the transition will be available to the user, and if it returns false or a Groovy falsy, it will be hidden.