Workflow navigation rule
Introduction
Workflow navigation rule controls Workflow navigation. At this point, the workflow navigation rule is embedded in the workflow definition and cannot be shared among different workflow definitions, unlike other rule types.
Rule syntax
Keywords
You can use the following keywords to work with workflow navigation rules:
Name | Type | Description |
---|---|---|
@ctx | DslCompilerContext | Provides APIs to access data of the running workflow. Read more about @ctx here. |
@apiFactory | IManagedApiFactory | To construct Casewhere API objects. Read here for the full list of available Apis |
Examples
Example 1: Imagine you are implementing a “Delete object” workflow that has two activities in the following order:
- Form activity: show a confirmation message. The user’s decision is recorded in the variable “agreed”.
- Scripted activity: delete the data object if the user agrees.
You will need to configure the inclusion rule for the scripted activity using the option "Included When" with the rule below:
@ctx.Get<bool>("agreed")
Example 2: The submission form will be disabled and become non-editable after the user submits their application.
ctx.Ref("CwAmtApplication")["Status"] == "Submitted"