/**
* mark this transaction for rollback only in the persistence service.
* The {@link #close()} operation will then perform a rollback.
*/
public void setRollbackOnly() {
TxService txService = (services!=null ? services.getTxService() : null);
if (txService!=null) {
txService.setRollbackOnly();
} else {
throw new JbpmException("no transaction service configured");
}
}