KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > ofbiz > OfbizWorkflowContext


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 /*
6  * Created by IntelliJ IDEA.
7  * User: plightbo
8  * Date: Apr 29, 2002
9  * 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 /**
21  * DOCUMENT ME!
22  *
23  * @author $author$
24  * @version $Revision: 1.2 $
25  */

26 public class OfbizWorkflowContext extends BasicWorkflowContext {
27     //~ Constructors ///////////////////////////////////////////////////////////
28

29     public OfbizWorkflowContext(String JavaDoc caller) {
30         super(caller);
31     }
32
33     //~ Methods ////////////////////////////////////////////////////////////////
34

35     public void setRollbackOnly() {
36         try {
37             TransactionUtil.setRollbackOnly();
38         } catch (GenericTransactionException e) {
39             throw new InternalWorkflowException(e);
40         }
41     }
42 }
43
Popular Tags