public TransitionInstance createTransitionInstance ( Transition transition , Long pProcessInstId ) throws DataAccessException { TransactionWrapper transaction = null ; try { transaction = startTransaction ( ) ; return engineImpl . createTransitionInstance ( transition , pProcessInstId ) ; } catch ( DataAccessException e ) { if ( canRetryTransaction ( e ) ) { transaction = ( TransactionWrapper ) initTransactionRetry ( transaction ) ; return ( ( ProcessExecutor ) getTransactionRetrier ( ) ) . createTransitionInstance ( transition , pProcessInstId ) ; } else throw e ; } finally { stopTransaction ( transaction ) ; } }
Creates a new instance of the WorkTransationInstance entity