View Javadoc
1   package gboat2.serviceflow.service;
2   
3   import gboat2.serviceflow.model.ProcessInfo;
4   
5   import java.net.URL;
6   import java.util.List;
7   import java.util.Map;
8   
9   public interface IServiceFlowService {
10  
11  	/**
12  	 * 注册流程定义文件
13  	 * @param processDefine 流程定义文件URL
14  	 */
15  	public void registProcess(IFlowFilter chooser, String processId, URL processDefine);
16  	
17  	public void registProcess(int priority,IFlowFilter chooser, String processId, URL processDefine);
18  	
19  	public void registProcess(IFlowFilter chooser, String processId, URL processDefine, URL picturePath);
20  	
21  	public void registProcess(int priority, IFlowFilter chooser, String processId, URL processDefine, URL picturePath);
22  
23  	public List<ProcessInfo> getProcessInfos();
24  
25  	public ProcessInfo getProcessInfo(String processId);
26  	
27  	/**
28  	 * 
29  	 * 开始一个任务(userTask)节点,并且完成一个任务(userTask)节点   
30  	 * @param   businessObjectId  业务对象Id
31  	 * @param   nodeName  业务节点名称
32  	 * @param   params  其他信息
33  	 * @Exception 异常对象
34  	 */
35  	public void completeTask(String businessObjectId, String nodeName, Map<String, Object> params);
36  	
37  	/**
38  	 * 获取处理指定节点的流程Id
39  	 * @param stepName
40  	 * @return
41  	 */
42  	public String getProcessIdForStepName(String stepName);
43  	
44  	/**
45  	 * 指定流程ID是否包含指定节点
46  	 * @param processId
47  	 * @param stepName
48  	 * @return
49  	 */
50  	public boolean hasContainsStepName(String processId,String stepName);	
51  	
52  	/**
53  	 * 获取流程显示路径
54  	 * @param processId
55  	 * @return
56  	 */
57  	public String getPathForDisplay(String processId);
58  }