After recent changes, all additional objects attached to the workflow instance are persisted.
If the persist procedure fails, the whole save state transaction is aborted
I believe this should be the default behavior.
However, there might be objects where a failure in persist procedure should not make the whole transaction fails or even additional objects that should not be persisted at all.
For additional objects that are POJOS, we can implement such functionality by marking those pojos with additional annotations: @Transient to disable persistence and @OptionallyPersistent to indicate failing to persist it should not make the whole transaction fail.
After recent changes, all additional objects attached to the workflow instance are persisted.
If the persist procedure fails, the whole save state transaction is aborted
I believe this should be the default behavior.
However, there might be objects where a failure in persist procedure should not make the whole transaction fails or even additional objects that should not be persisted at all.
For additional objects that are POJOS, we can implement such functionality by marking those pojos with additional annotations:
@Transientto disable persistence and@OptionallyPersistentto indicate failing to persist it should not make the whole transaction fail.