Syntax
void
commissionCheck
(
final Long
authorisationId
,
final Long
actorId
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
authorisationId –
the subtransaction's id
-
actorId –
the actorId (authenticated user)
Exceptions
-
MobiliserServiceException –
if checking of the commissions 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 Commission 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.