Package com.axelor.workflow.exec
Class WorkflowRecordEvents
java.lang.Object
com.axelor.workflow.exec.WorkflowRecordEvents
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidQueue, asresumed(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.voidQueue a change to the record's tasks, fired after the current transaction commits.voidQueue, aschanged(java.lang.String, java.lang.Long), a run on the record resumed off the request that saved it.
-
Constructor Details
-
WorkflowRecordEvents
-
-
Method Details
-
changed
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
Queue, aschanged(java.lang.String, java.lang.Long), a run on the record resumed off the request that saved it. -
announceUpdates
public void announceUpdates()Queue, asresumed(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.
-