Macro condition

The macro condition is a component in which you can program velocity macros, scripts or Java classes. The programmed parameters are checked and evaluated in the condition. The condition is therefore only fulfilled if the parameters deliver the programmed result.

Configuration:

Property

Description

Logic operation (objects)

If the condition is executed on multiple objects, you can use the Logical operation(Objects) property to determine how the results of the condition (true or false) are linked and evaluated:

  • OR: Condition is true if one of the results or all results are true.

  • AND: Condition is true if all results are true.

  • Exclusive OR: Condition is true if one of the results is true and the rest are false.

Queries

You can create a query here which determines the objects for which the condition is evaluated.

If the condition is to be executed on objects that are referenced in another object, you can create a query here that determines the corresponding objects.

Logic operation (attributes)

Select here the logical operation of the attributes for the evaluation of the condition:

  • OR: The condition is true if one of the attributes or all attributes have the value set or not set, depending on whether the property Value set is enabled or disabled.

  • AND: The condition is true if all attributes have the value set or not set, depending on whether the property Value set is enabled or disabled.

  • Exclusive OR: The condition is true if any of the attributes have the value set or not set, depending on whether the property Value set is enabled or disabled, and all other attributes have the opposite.

Attributes

Reference here the attributes that are to be checked.

Macro type

Select the macro type of the macro query here:

  • Velocity Macro: The macro in the Macro property is executed.

  • Java class: the Java class in the Macro Java class property is executed.

Macro Java class Enter the Java class to be executed here. The Java class must have the fully qualified name of a Java class that implements the de.aeneis.report.AeneisMacro interface and has a default public constructor. The Java class will be executed only if you have selected the macro type Java Class.

Macro

Enter the macro to be executed here. The macro will be executed only if you have set the Velocity Macro macro type.

See also: For more on velocity macros, see Velocity macros.

Parameters

Create and edit parameters for the macro here. Parameters are especially useful for use as variables.

Variables

You can activate the enabled attributes of a query and condition in the Variables property so that they can be changed by users at the time of execution.

See also: Chapter Variables.