Package com.axelor.workflow.exec
Record Class WorkflowEvent
java.lang.Object
java.lang.Record
com.axelor.workflow.exec.WorkflowEvent
public record WorkflowEvent(TriggerKind trigger, RecordRef record, Set<String> changedFields, Map<String,Object> self, Map<String,Object> old)
extends Record
A captured change handed to the runtime.
self and old hold the record's fields,
custom fields flattened; old is null on create.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangedFieldsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()old()Returns the value of theoldrecord component.record()Returns the value of therecordrecord component.recordId()self()Returns the value of theselfrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
-
Constructor Details
-
WorkflowEvent
public WorkflowEvent(TriggerKind trigger, RecordRef record, Set<String> changedFields, Map<String, Object> self, Map<String, Object> old) Creates an instance of aWorkflowEventrecord class.- Parameters:
trigger- the value for thetriggerrecord componentrecord- the value for therecordrecord componentchangedFields- the value for thechangedFieldsrecord componentself- the value for theselfrecord componentold- the value for theoldrecord component
-
-
Method Details
-
model
-
jsonModel
-
recordId
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
record
Returns the value of therecordrecord component.- Returns:
- the value of the
recordrecord component
-
changedFields
Returns the value of thechangedFieldsrecord component.- Returns:
- the value of the
changedFieldsrecord component
-
self
Returns the value of theselfrecord component.- Returns:
- the value of the
selfrecord component
-
old
Returns the value of theoldrecord component.- Returns:
- the value of the
oldrecord component
-