Search Results for

    Show / Hide Table of Contents

    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:

    1. Form activity: show a confirmation message. The user’s decision is recorded in the variable “agreed”.
    2. 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")
    

    image-20250103171646444

    Example 2: The submission form will be disabled and become non-editable after the user submits their application.

    ctx.Ref("CwAmtApplication")["Status"] == "Submitted"
    

    image-20250103171715070

    In This Article
    Back to top Generated by DocFX