Official Content

Below are described several Triggering events that can be added to your Transaction Rules to trigger them before executing a certain action.

1) BeforeValidate

Allows the execution of rules before starting the validation process of the level in which the rule has been triggered.

Syntax

Any valid Transaction rule [ IF condition ][ ON BeforeValidate] ;

Where:

condition
Is any valid logic condition

2) BeforeInsert

Allows the execution of rules before actually doing the Insert action.

Syntax

Any valid Transaction rule [ IF condition ][ ON BeforeInsert] ;

Where:

condition
Is any valid logic condition

3) BeforeUpdate

Allows the execution of rules before actually doing the Update action.

Syntax

Any valid Transaction rule [ IF condition ][ ON BeforeUpdate] ;

Where:

condition
Is any valid logic condition

4) BeforeDelete

Allows the execution of rules before actually doing the Delete action.

Syntax

Any valid Transaction rule [ IF condition ][ ON BeforeDelete] ;

Where:

condition
Is any valid logic condition

5) BeforeComplete

Allows the execution of rules before the completion of the Logical Unit of Work.

Syntax

Any valid Transaction rule [ IF condition ][ ON BeforeComplete] ;

Where:

condition
Is any valid logic condition

Type Returned: Boolean (True or False)

Samples

GetParms(&Parm1, &Parm2, &Parm3, &Parm4) On BeforeValidate;
Log(&Now , &Parm1 , &Parm2) On BeforeComplete; 

Scope

Objects: Transaction
Generators: .NET, Java

See Also

After Action Triggering event
Transaction rules
Triggering events for rules in Transactions



Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant