The details about a workflow validation error.

interface WorkflowValidationError {
    code?: string;
    elementReference?: WorkflowElementReference;
    level?: "WARNING" | "ERROR";
    message?: string;
    type?:
        | "RULE"
        | "STATUS"
        | "STATUS_LAYOUT"
        | "STATUS_PROPERTY"
        | "WORKFLOW"
        | "TRANSITION"
        | "TRANSITION_PROPERTY"
        | "SCOPE"
        | "STATUS_MAPPING"
        | "TRIGGER";
}

Properties

code?: string

An error code.

elementReference?: WorkflowElementReference

A reference to the location of the error. This will be null if the error does not refer to a specific element.

level?: "WARNING" | "ERROR"

The validation error level.

message?: string

An error message.

type?:
    | "RULE"
    | "STATUS"
    | "STATUS_LAYOUT"
    | "STATUS_PROPERTY"
    | "WORKFLOW"
    | "TRANSITION"
    | "TRANSITION_PROPERTY"
    | "SCOPE"
    | "STATUS_MAPPING"
    | "TRIGGER"

The type of element the error or warning references.