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