Package com.axelor.workflow.trigger


package com.axelor.workflow.trigger
  • Class
    Description
    Dispatches durable record changes under fenced leases, completing with the database work.
    One record-driven wake source the orchestrator re-checks after every save, such as condition waits or tasks whose when may now hold.
    Remembers the XML a MetaWorkflow row is about to lose.
    Detection-only listener for deletions: records which rows went and, after commit, hands them to WorkflowRecordCleanup.
    Detection-only listener: during flush it captures the model, the changed fields and before/after snapshots (custom fields flattened), and never runs workflow logic, queries or saves.
    Registers the workflow detection listeners: saves that may trigger, deletes that must clean, definition changes whose previous graph has to be remembered before it is gone, and the updates a resumed walk makes.
    After-commit orchestration for a captured create or update: resolve the eligible workflows, apply watch and repeat policy, launch the ones that fire and arm timer workflows.
    Ends what the engine still holds for deleted records: pending approvals, parked runs and trigger state.
    Manages the MetaWorkflowState rows of once and timer workflows, unique on (workflow, recordId).
    A concurrent caller created this state row first: a benign race whose loser rolls back and skips.