01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.bpmscript.remote;
18:
19: import java.util.List;
20:
21: import org.bpmscript.BpmScriptException;
22: import org.bpmscript.IPagedResult;
23: import org.bpmscript.IProcess;
24: import org.bpmscript.IProcessInstance;
25: import org.bpmscript.IProcessSource;
26: import org.bpmscript.IProcessSourceName;
27: import org.bpmscript.IQuery;
28:
29: public interface IRemoteProcessManager {
30:
31: void addSourceToProcess(String processId, String name,
32: String source, boolean main) throws BpmScriptException;
33:
34: String createProcess(String namespace, String name)
35: throws BpmScriptException;
36:
37: IProcessSource getMainSource(String processId)
38: throws BpmScriptException;
39:
40: IProcess getProcess(String processId) throws BpmScriptException;
41:
42: IProcessInstance getProcessInstance(String processInstanceId)
43: throws BpmScriptException;
44:
45: List<IProcess> getPrimaryProcesses() throws BpmScriptException;
46:
47: IProcess getPrimaryProcess(String name) throws BpmScriptException;
48:
49: IPagedResult<IProcessInstance> getProcessInstances(IQuery query)
50: throws BpmScriptException;
51:
52: List<IProcessSource> getProcessSources(String processId)
53: throws BpmScriptException;
54:
55: List<IProcessSourceName> getProcessSourceNames(String processId)
56: throws BpmScriptException;
57:
58: void setProcessAsPrimary(String processId)
59: throws BpmScriptException;
60:
61: IProcessSource getProcessSource(String processSourceId)
62: throws BpmScriptException;
63:
64: List<IProcessInstance> getChildProcessInstances(
65: String processInstanceId) throws BpmScriptException;
66:
67: List<IProcess> getProcessVersions(String name)
68: throws BpmScriptException;
69:
70: }
|