## Macros #macro(displayProperties $artifact $exludedProperties) #foreach($property in $artifact.properties) #if (!$exludedProperties.contains($property)) #end #end
$artifact.get($property).localizedProperty$artifact.get($property).localizedValue
#end #macro(displayValue $artifact $property $displayProperty)
$displayProperty
#if ($artifact.type.value == "brm.DecisionTree" && $property == "definition")
#else
$artifact.get($property).value
#end #end #macro(addEntryInTableOfContents $artifacts $href $text $addContent) #if ($artifacts && !$artifacts.isEmpty())
  • $text

    #if($addContent == "tree") #elseif($addContent == "list") #end
  • #end #end #macro(addTopImage)
      
    #end #macro(addIconCls $type) #set( $cls = $type.replace('.', '_')) #if ($cls.startsWith("brm_")) class="${cls} element-icon" #else class="brm_${cls} element-icon" #end #end ## $messages.report-title #if($cssUrls) #foreach($cssUrl in $cssUrls) #end #end #if($inlineCss) #foreach($css in $inlineCss) $css #end #end
    $messages.getText("header-description", [$project, $baseline, $date])

    $messages.tableOfContent

    #if ($parameters && !$parameters.isEmpty())

    $messages.parameters-section-title

    #foreach($parameter in $parameters) #end
    $messages.parameter-name $messages.parameter-bomType $messages.parameter-direction $messages.parameter-verbalization $messages.parameter-defaultValue
    $parameter.name.localizedValue $parameter.bomType.localizedValue $parameter.direction.localizedValue $parameter.verbalization.localizedValue $parameter.initialValue.localizedValue
    #end #if ($variableSets && !$variableSets.isEmpty())

    $messages.variableSets-section-title

      #foreach($variableSet in $variableSets)
    • $variableSet.name.localizedValue
      #foreach($variable in $variableSet.variables.value) #end
      $messages.variable-name $messages.variable-bomType $messages.variable-verbalization $messages.variable-initialValue
      $variable.name.localizedValue $variable.bomType.localizedValue $variable.verbalization.localizedValue $variable.initialValue.localizedValue
    • #end
    #end #if ($ruleArtifacts && !$ruleArtifacts.isEmpty())

    $messages.ruleArtifacts-section-title

      #foreach($project in $projects)
      • #foreach($package in $project.packages)
      • $package.value#addTopImage()
          #foreach($ruleArtifact in $package.elements)
        • #if ($ruleArtifact.preconditions) #displayValue($ruleArtifact, "preconditions","$messages.ruleArtifact-preconditions") #end #displayValue($ruleArtifact, "definition", "$messages.ruleArtifact-definition") #displayValue($ruleArtifact, "documentation","$messages.ruleArtifact-documentation")
          $messages.ruleArtifact-properties
          #displayProperties($ruleArtifact, ["name", "preconditions", "permalink","definition", "documentation", "type", "path", "id"])
        • #end
      • #end
    • #end
    #end #if ($ruleflows && !$ruleflows.isEmpty())

    $messages.ruleflows-section-title

      #foreach($ruleflow in $ruleflows)
    • $messages.ruleflow-diagram
      $messages.tasks-section-title
        #foreach($task in $ruleflow.rftasks.value) #if (!$task.empty)
      • $task.label
        #if ($task.type == "ruletask") #if (!$task.scopeEmpty)
        $messages.task-scopes
          #foreach($entry in $task.scopeEntries)
        • #if ($ruleArtifacts && !$ruleArtifacts.isEmpty()) #if ("true" == $entry.found) #else $entry.label #end #end
        • #end
        #end #end
        $messages.task-properties
        #if ($task.generic) #if (!$task.initialActionsEmpty) #end #if (!$task.finalActionsEmpty) #end #end #if ($task.bodyable) #if (!$task.bodyEmpty) #end #end #if ($task.type == "ruletask") #if (!$task.selectEmpty) #end #end
        $messages.initialActions$task.initialActions
        $messages.finalActions$task.finalActions
        $messages.functionCode$task.body
        $messages.select$task.select
        $messages.algorithm$task.executionMode
        $messages.ordering$task.ordering
        $messages.exitCriteria$task.exitCriteria
      • #end #end
      #displayValue($ruleflow, "documentation", "$messages.ruleflow-documentation")
      $messages.ruleflow-properties
      #displayProperties($ruleflow, ["name", "diagram", "id", "body", "tasks", "documentation","permalink", "type", "scopes", "path", "rftasks", "initialActions", "finalActions"])
    • #end
    #end