@nycu-sdc/core-system-sdk
    Preparing search index...

    Interface FormWorkflowConditionRule

    Condition rule for condition nodes

    interface FormWorkflowConditionRule {
        pattern: string;
        question: string;
        source: FormWorkflowConditionSource;
    }
    Index

    Properties

    pattern: string

    Regex pattern to match against. If source is NON_CHOICE, the regex is matched against the answer value. If source is CHOICE, the answer is an array of selected choice option IDs, and this regex is matched against each element; the condition passes if any element matches (e.g. use an exact-match UUID regex like ^$).

    question: string

    The question ID to check against

    Source of data for the condition