1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.transport.bpm.jbpm; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.module.bpm.BPMS; |
15 | |
import org.mule.module.bpm.config.BpmNamespaceHandler; |
16 | |
import org.mule.transport.bpm.ProcessConnector; |
17 | |
import org.mule.util.ClassUtils; |
18 | |
|
19 | |
import java.util.Properties; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
public class JBpmConnector extends ProcessConnector |
25 | |
{ |
26 | |
private String configurationResource; |
27 | |
|
28 | |
private Object processEngine; |
29 | |
|
30 | |
private Properties processDefinitions; |
31 | |
|
32 | |
public JBpmConnector(MuleContext context) |
33 | |
{ |
34 | 0 | super(context); |
35 | 0 | } |
36 | |
|
37 | |
@Override |
38 | |
protected BPMS createBpms() throws Exception |
39 | |
{ |
40 | 0 | return (BPMS) ClassUtils.instanciateClass(BpmNamespaceHandler.JBPM_WRAPPER_CLASS, configurationResource, processDefinitions); |
41 | |
} |
42 | |
|
43 | |
public void setConfigurationResource(String configurationResource) |
44 | |
{ |
45 | 0 | this.configurationResource = configurationResource; |
46 | 0 | } |
47 | |
|
48 | |
public String getConfigurationResource() |
49 | |
{ |
50 | 0 | return configurationResource; |
51 | |
} |
52 | |
|
53 | |
public Object getProcessEngine() |
54 | |
{ |
55 | 0 | return processEngine; |
56 | |
} |
57 | |
|
58 | |
public void setProcessEngine(Object processEngine) |
59 | |
{ |
60 | 0 | this.processEngine = processEngine; |
61 | 0 | } |
62 | |
|
63 | |
public void setProcessDefinitions(Properties processDefinitions) |
64 | |
{ |
65 | 0 | this.processDefinitions = processDefinitions; |
66 | 0 | } |
67 | |
} |