1.

Define Trigger?

Answer»

A trigger is a piece of code that can be ADDED before or after the execution of an operation is performed on the OpenPages platform. This piece of code can perform anything that is written in Java.

A trigger consists of the following two parts:

A rule - this is a condition that applies to the operation being executed and the parameters involved in the operation. For example,

  • The operation being executed
  • Type of object
  • Condition on a PROPERTY of the object(s) in context

One or more event handlers - an event handler is executed if the current operation satisfies the rule defined for the trigger. These ACTIONS can perform any business logic. For example,

  • Throw a validation error.
  • Create a new object.
  • DELETE an existing object.
  • Reset or modify properties of an object.
  • Modify properties of a related object.
  • EXECUTE a report or program.
  • Kick off a workflow.

A trigger is a piece of code that can be added before or after the execution of an operation is performed on the OpenPages platform. This piece of code can perform anything that is written in Java.

A trigger consists of the following two parts:

A rule - this is a condition that applies to the operation being executed and the parameters involved in the operation. For example,

One or more event handlers - an event handler is executed if the current operation satisfies the rule defined for the trigger. These actions can perform any business logic. For example,



Discussion

No Comment Found