Skip to main content

DocuMine Documentation

Comments in rules

Comments in rules can enhance code readability and understanding. They merely serve as annotations or documentation and are ignored by the rule engine

Single-line comments

Use “//” to mark single-line comments. Any text between the comment marker and the end of the line is ignored.

// This is a single-line comment
rule "MAN.4.1: Apply legal basis change"
    when
Multi-line comments

Multi-line comments are enclosed between a forward slash and an asterisk: /*...*/. The rule engine ignores anything between these markers.

rule "DOC.1.2: Guidelines"
/* This is a multi-line comment.
We use this comment type for longer comments.*/
     when
         $section: Section(
            (
                containsString("DATA REQUIREMENT")// This is a single-line comment
rule "MAN.4.1: Apply legal basis change"
    when