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:
|
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:
|
Attributes |
Reference here the attributes that are to be checked. |
Macro type |
Select the macro type of the macro query here:
|
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. |