Skip to main content

What is a Declare Trigger rule in Pega

    • Declare Trigger runs an activity when instances of a specific class are  created, updated, or deleted in the database.
    • This implements a form of forward chaining.
    • For each Declare Trigger rule, the Pega Platform monitors database operations for objects of the Applies To class (and concrete classes derived from that class)
    • During database commit processing, forward chaining processing may trigger — start execution of — the activity identified in this rule.
    • Declare triggers are always executed before the object is committed to the database.
    • Trigger activity can execute immediately or on background .
    •  If you define Declare Trigger's execution method as Background, then Pega creates child requestor and then executes the Declare Trigger in that requestor. The reason for this option is to consider the performance impact of the application.

Comments

Popular posts from this blog

Difference between Spinoff, Split join and Split for each

Split Join -   Use the Split-Join shape to require that multiple subflows of your flow be completed before the current flow continues execution. This allows subflows to execute asynchronously, in parallel. For an example, see the standard flow Work-.ParallelWork. Split For Each -  The Split-ForEach task provides a form of searching or enumeration over the pages in a property. Use a Split-ForEach shape to iterate over the pages of a Page List or Page Group property. For each page, you can conditionally start a flow execution for the work object. Spinoff-  When a work object advancing through a flow reaches the Spin-off shape, Process Commander starts execution of a different flow, using the current or a different work object. Processing in the current flow rule continues in parallel, without waiting for the other flow to complete.

Difference between Backward chaining and forward chaining

·         Forward Chaining: It provides the automatic calculations of the property value by executing the declarative rule, when any one of the input property value is changed. EX: If the Area property depends on the Length and Width property, then forward chaining causes the Area property recomputed each time either Length/Width value changes. ·         Backward Chaining: It provides the automatic calculations of a property value by executing the declarative rule, when a value is needed for property rather than whenever inputs change.    EX: If the Area property depends on the Length and Width property, then backward chaining causes the Area property recomputed each time the Area property is required.

Difference between Page list and Page group?

1) Page List mode property is a data structure consisting of an ordered list of zero or more pages, each identified by an integer index (starting with 1). 2) A Page Group is a data structure consisting of an unordered set of pages, each identified by a string subscript value. For example, a Page Group property can contain an array of 50 pages, one for each state in the United States, indexed by state code. The reference: State(“VA”).Population can identify a numeric property for the state of Virginia. In contrast, a Page List data structure uses numeric indexes (subscripts) 1, 2, 3 to identify an ordered list of pages.