PmTransaction

public class PmTransaction<I, S extends EntityState, B extends ValidatingBuilder<S>> extends Transaction<I, E, S, B>

A transaction, within which ProcessManager instances are modified.

Parameters

<I>

the type of process manager IDs

<S>

the type of process manager state

<B>

the type of a ValidatingBuilder for the process manager state

Constructors

Link copied to clipboard
protected void PmTransaction(ProcessManager<I, S, B> processManager)
protected void PmTransaction(ProcessManager<I, S, B> processManager, S state, Version version)

Inherited functions

Link copied to clipboard
public final void commit()
Applies all the outstanding modifications to the enclosed entity.
Link copied to clipboard
protected final void commitAttributeChanges()
Applies lifecycle flag modifications to the entity under transaction.
Link copied to clipboard
public final void commitIfActive()
Commits this transaction if it is still active.
Link copied to clipboard
protected final E entity()
Link copied to clipboard
protected final DispatchOutcome propagate(Phase<I> phase)
Propagates a phase and performs a rollback in case of an error.
Link copied to clipboard
protected final void setArchived(boolean archived)
Set archived lifecycle flag to the passed value.
Link copied to clipboard
protected final void setDeleted(boolean deleted)
Set deleted lifecycle flag to the passed value.
Link copied to clipboard
public final void setListener(TransactionListener<I> listener)
Injects a listener into this transaction.