Class WorkflowRecordEvents

java.lang.Object
com.axelor.workflow.exec.WorkflowRecordEvents

@Singleton public class WorkflowRecordEvents extends Object
Collects record change notifications during a transaction and fires them as WorkflowRecordChanged only after it commits, deduplicated per record, so listeners that re-query never read pre-commit state.
  • Constructor Details

  • Method Details

    • changed

      public void changed(String model, Long recordId)
      Queue a change to the record's tasks, fired after the current transaction commits. Call it inside that transaction; the tenant is taken from its thread.
    • resumed

      public void resumed(String model, Long recordId)
      Queue, as changed(java.lang.String, java.lang.Long), a run on the record resumed off the request that saved it.
    • announceUpdates

      public void announceUpdates()
      Queue, as resumed(java.lang.String, java.lang.Long), every record the current transaction updates from here on: a resumed walk also writes records other than its run's, such as a caller it resumes, a run a message wakes, or a record a script reaches through a relation.