View Javadoc

1   /*
2    * $Id: TestBpms.java 20321 2010-11-24 15:21:24Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.module.bpm.test;
12  
13  import org.mule.module.bpm.BPMS;
14  import org.mule.module.bpm.MessageService;
15  
16  import java.util.Map;
17  
18  /**
19   * Dummy BPMS for unit testing.
20   */
21  public class TestBpms implements BPMS
22  {
23      private String foo;
24      
25      public void abortProcess(Object processId) throws Exception
26      {
27          // nop
28      }
29  
30      public Object advanceProcess(Object processId, Object transition, Map processVariables) throws Exception
31      {
32          return null;
33      }
34  
35      public Object getId(Object process) throws Exception
36      {
37          return null;
38      }
39  
40      public Object getState(Object process) throws Exception
41      {
42          return null;
43      }
44  
45      public boolean hasEnded(Object process) throws Exception
46      {
47          return false;
48      }
49  
50      public boolean isProcess(Object obj) throws Exception
51      {
52          return false;
53      }
54  
55      public Object lookupProcess(Object processId) throws Exception
56      {
57          return null;
58      }
59  
60      public void setMessageService(MessageService msgService)
61      {
62          // nop
63      }
64  
65      public Object startProcess(Object processType, Object transition, Map processVariables) throws Exception
66      {
67          return null;
68      }
69  
70      public Object updateProcess(Object processId, Map processVariables) throws Exception
71      {
72          return null;
73      }
74  
75      public String getFoo()
76      {
77          return foo;
78      }
79  
80      public void setFoo(String foo)
81      {
82          this.foo = foo;
83      }
84  
85      public void deployProcess(String resource) throws Exception
86      {
87          // nop
88      }
89  
90      public void undeployProcess(String resource) throws Exception
91      {
92          // nop
93      }
94  }