01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: /*
06: * Created by IntelliJ IDEA.
07: * User: plightbo
08: * Date: Apr 29, 2002
09: * Time: 11:20:06 PM
10: */
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: * DOCUMENT ME!
21: *
22: * @author $author$
23: * @version $Revision: 1.2 $
24: */
25: public class OfbizWorkflowContext extends BasicWorkflowContext {
26: //~ Constructors ///////////////////////////////////////////////////////////
27:
28: public OfbizWorkflowContext(String caller) {
29: super (caller);
30: }
31:
32: //~ Methods ////////////////////////////////////////////////////////////////
33:
34: public void setRollbackOnly() {
35: try {
36: TransactionUtil.setRollbackOnly();
37: } catch (GenericTransactionException e) {
38: throw new InternalWorkflowException(e);
39: }
40: }
41: }
|