Syntax
void
limitCheck
(
final Long
subTransactionId
,
final Long
actorId
,
final boolean
persist
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
subTransactionId –
the subtransaction's id
-
actorId –
the actorId (authenticated user)
-
persist –
whether the changes on the limit sums should be persisted or discarded; if set to false this can be used for testing purposed w/o actually changing database content
Exceptions
-
MobiliserServiceException –
if checking of the transaction limits fails for some reason (business rules)
-
DataAccessException –
if some error occurs communicating / writing / reading persistent storage
-
TransactionException –
if some error occurs while handling the transactions related to persistent storage
Usage
Perform a limit sum adjustment and limit check for the given
SubTransaction
.
Notes on transactional semantics:
This operation will run inside its own database transaction. Any failure will trigger a rollback and also if the user requests
persist=false
the changes will also be rolled back. Exception will
always
cause the
SubTransaction
and the main
Transaction
to be marked as failed in a fresh database transaction.