Package com.axelor.ai.procedure
Record Class ProcedureRunner.Outcome
java.lang.Object
java.lang.Record
com.axelor.ai.procedure.ProcedureRunner.Outcome
- Record Components:
status- how it ended:DONE, or why it stoppedmessage- the error, refusal or declined alert, when it stoppedid- the record's id at the end, null for a new record never savedsaved- whether the record was saved during the runchanges- the fields whose values differ from those loaded, with their values now: once saved, as the database holds themprevious- the same fields, with their values as loadedunsaved- after a save, the fields whose values the run holds but did not save, with those values: a later step changed them and no save followed, or the save failedresult- everything the browser would have shown, from the last step runmessages- the messages of every step, in orderwrites- the records the form's actions wrote themselves, kept whether or not the run saved: what a failed run leaves behindanswers- the alerts met, and how each was answeredpaused- the run to carry on once the user answers, when it stopped at a questionopenForm- how the form open beside the chat was used, or null when none matched
- Enclosing class:
ProcedureRunner
public static record ProcedureRunner.Outcome(FormResult.Status status, String message, Long id, boolean saved, Map<String,Object> changes, Map<String,Object> previous, Map<String,Object> unsaved, FormResult result, List<ProcedureRunner.Said> messages, List<FormResult.Write> writes, List<ProcedureRunner.Answer> answers, ProcedureRunner.Paused paused, ProcedureRunner.OpenForm openForm)
extends Record
What a run did.
-
Constructor Summary
ConstructorsConstructorDescriptionOutcome(FormResult.Status status, String message, Long id, boolean saved, Map<String, Object> changes, Map<String, Object> previous, Map<String, Object> unsaved, FormResult result, List<ProcedureRunner.Said> messages, List<FormResult.Write> writes, List<ProcedureRunner.Answer> answers, ProcedureRunner.Paused paused, ProcedureRunner.OpenForm openForm) Creates an instance of aOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswers()Returns the value of theanswersrecord component.changes()Returns the value of thechangesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.messages()Returns the value of themessagesrecord component.openForm()Returns the value of theopenFormrecord component.paused()Returns the value of thepausedrecord component.previous()Returns the value of thepreviousrecord component.result()Returns the value of theresultrecord component.booleansaved()Returns the value of thesavedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.unsaved()Returns the value of theunsavedrecord component.writes()Returns the value of thewritesrecord component.
-
Constructor Details
-
Outcome
public Outcome(FormResult.Status status, String message, Long id, boolean saved, Map<String, Object> changes, Map<String, Object> previous, Map<String, Object> unsaved, FormResult result, List<ProcedureRunner.Said> messages, List<FormResult.Write> writes, List<ProcedureRunner.Answer> answers, ProcedureRunner.Paused paused, ProcedureRunner.OpenForm openForm) Creates an instance of aOutcomerecord class.- Parameters:
status- the value for thestatusrecord componentmessage- the value for themessagerecord componentid- the value for theidrecord componentsaved- the value for thesavedrecord componentchanges- the value for thechangesrecord componentprevious- the value for thepreviousrecord componentunsaved- the value for theunsavedrecord componentresult- the value for theresultrecord componentmessages- the value for themessagesrecord componentwrites- the value for thewritesrecord componentanswers- the value for theanswersrecord componentpaused- the value for thepausedrecord componentopenForm- the value for theopenFormrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
saved
public boolean saved()Returns the value of thesavedrecord component.- Returns:
- the value of the
savedrecord component
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-
previous
Returns the value of thepreviousrecord component.- Returns:
- the value of the
previousrecord component
-
unsaved
Returns the value of theunsavedrecord component.- Returns:
- the value of the
unsavedrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
writes
Returns the value of thewritesrecord component.- Returns:
- the value of the
writesrecord component
-
answers
Returns the value of theanswersrecord component.- Returns:
- the value of the
answersrecord component
-
paused
Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-
openForm
Returns the value of theopenFormrecord component.- Returns:
- the value of the
openFormrecord component
-