1 5 11 package com.opensymphony.workflow.ofbiz; 12 13 import com.opensymphony.workflow.InternalWorkflowException; 14 import com.opensymphony.workflow.basic.BasicWorkflowContext; 15 16 import org.ofbiz.core.entity.GenericTransactionException; 17 import org.ofbiz.core.entity.TransactionUtil; 18 19 20 26 public class OfbizWorkflowContext extends BasicWorkflowContext { 27 29 public OfbizWorkflowContext(String caller) { 30 super(caller); 31 } 32 33 35 public void setRollbackOnly() { 36 try { 37 TransactionUtil.setRollbackOnly(); 38 } catch (GenericTransactionException e) { 39 throw new InternalWorkflowException(e); 40 } 41 } 42 } 43 | Popular Tags |