You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public record ComplexObject(...) {}
public NextAction myFancyState(StateExecution e, @StateVar("complex") ComplexObject o) {
...
e.setVariable("complex", new ComplexObject(....));
...
}
ObjectStringMapper#storeArguments overwrites the change made via StateExecution#setVariable because the @StateVar annotation does not have readOnly = true. Doesn't seem to apply to primitive or "simple" types as they get interpreted as read only due to their types.
Debatable if bug or feature, but definitely confusing and error prone.
Applies to version 10 at least.
The text was updated successfully, but these errors were encountered:
In this example the state change is lost:
ObjectStringMapper#storeArguments
overwrites the change made viaStateExecution#setVariable
because the@StateVar
annotation does not havereadOnly = true
. Doesn't seem to apply to primitive or "simple" types as they get interpreted as read only due to their types.Debatable if bug or feature, but definitely confusing and error prone.
Applies to version 10 at least.
The text was updated successfully, but these errors were encountered: