Package com.axelor.workflow.trigger
package com.axelor.workflow.trigger
-
ClassDescriptionDispatches 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
whenmay now hold.Remembers the XML aMetaWorkflowrow is about to lose.Detection-only listener for deletions: records which rows went and, after commit, hands them toWorkflowRecordCleanup.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, applywatchand 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.A concurrent caller created this state row first: a benign race whose loser rolls back and skips.