Package com.axelor.workflow.plan
Record Class WorkflowPlan.SendStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.SendStep
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.SendStep(String id, String message, String signal, String key, String payload, Integer ttl, MessageExpect expect, String next)
extends Record
implements WorkflowPlan.Step
A compiled
<send>: a message (name and key) or a signal (name alone), and where the
walk goes next. It carries no boundaries, since it neither waits nor runs author code.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this broadcasts a signal rather than addressing a message by key.final booleanIndicates whether some other object is "equal to" this one.expect()Returns the value of theexpectrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.message()Returns the value of themessagerecord component.next()Returns the value of thenextrecord component.payload()Returns the value of thepayloadrecord component.signal()Returns the value of thesignalrecord component.targets()final StringtoString()Returns a string representation of this record class.ttl()Returns the value of thettlrecord component.type()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.axelor.workflow.plan.WorkflowPlan.Step
async, boundaries, catching
-
Constructor Details
-
SendStep
public SendStep(String id, String message, String signal, String key, String payload, Integer ttl, MessageExpect expect, String next) Creates an instance of aSendSteprecord class.- Parameters:
id- the value for theidrecord componentmessage- the value for themessagerecord componentsignal- the value for thesignalrecord componentkey- the value for thekeyrecord componentpayload- the value for thepayloadrecord componentttl- the value for thettlrecord componentexpect- the value for theexpectrecord componentnext- the value for thenextrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceWorkflowPlan.Step
-
broadcast
public boolean broadcast()Whether this broadcasts a signal rather than addressing a message by key. -
targets
- Specified by:
targetsin interfaceWorkflowPlan.Step
-
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). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceWorkflowPlan.Step- Returns:
- the value of the
idrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
signal
Returns the value of thesignalrecord component.- Returns:
- the value of the
signalrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
ttl
Returns the value of thettlrecord component.- Returns:
- the value of the
ttlrecord component
-
expect
Returns the value of theexpectrecord component.- Returns:
- the value of the
expectrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-