Package akka.javasdk.evaluation
Record Class Subject.Workflow
- Record Components:
workflowId- the ID of the workflow instanceworkflowComponentId- the component ID of the workflow, since a workflow ID is unique per workflow type only
- All Implemented Interfaces:
Subject
- Enclosing interface:
Subject
public static record Subject.Workflow(String workflowId, String workflowComponentId)
extends Record
implements Subject
One run of a workflow, evaluated as a whole rather than as an individual agent interaction.
Interactions to evaluate can be passed as trigger attributes when starting the evaluation, or read from workflow state. The evaluation can start before the workflow step that starts it is persisted, so the evaluator reads only what earlier steps persisted.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.evaluation.Subject
Subject.Interaction, Subject.Workflow -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowComponentIdrecord component.Returns the value of theworkflowIdrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface akka.javasdk.evaluation.Subject
agentComponentId, interactionId
-
Constructor Details
-
Workflow
Creates an instance of aWorkflowrecord class.- Parameters:
workflowId- the value for theworkflowIdrecord componentworkflowComponentId- the value for theworkflowComponentIdrecord component
-
-
Method Details
-
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). -
workflowId
Returns the value of theworkflowIdrecord component.- Returns:
- the value of the
workflowIdrecord component
-
workflowComponentId
Returns the value of theworkflowComponentIdrecord component.- Returns:
- the value of the
workflowComponentIdrecord component
-