@Controller @RequestMapping(value="/core/workflow/") @Lazy public class CoreWorkflowController extends BaseController
限定符和类型 | 类和说明 |
---|---|
static class |
CoreWorkflowController.CopyToParams |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreWorkflowController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
add(com.kdayun.workflow.engine.impl.persistence.entity.ModelEntity model)
创建流程模型
|
RetVo |
agenttask(java.util.Map<java.lang.String,java.lang.Object> params)
找人代理流程
|
RetVo |
attachment(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
添加节点的附件
|
RetVo |
copyTo(java.util.Map<java.lang.String,java.lang.Object> params)
复制模型
|
RetVo |
deletetask(java.util.Map<java.lang.String,java.lang.String> map)
删除实例
|
RetVo |
deploy(java.util.Map<java.lang.String,java.lang.Object> params)
根据Model部署流程
|
RetVo |
deployMemtQuery(java.lang.String dwid)
获取发布的流程列表
|
void |
export(java.lang.String modelId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
导出model的xml文件
|
RetVo |
findliuc(java.util.Map<java.lang.String,java.lang.Object> params)
得到流程日志
|
RetVo |
finishtask(java.lang.String[] taskids)
结束流程
|
RetVo |
getformdata(java.lang.String processid)
得到当前流程节点的formData
|
RetVo |
getformdataEx(java.lang.String processid)
得到当前流程节点的getformdataEx
|
RetVo |
getNextTaskAssigees(java.util.Map<java.lang.String,java.lang.Object> params)
获取流程的当前节点的下一个节点的参与者.注意这个功能存在有可能获取不到问题.只适用简单的流程
|
void |
getProcessImage(java.lang.String processinstanceid,
javax.servlet.http.HttpServletResponse response)
获取流程的轨迹图
|
void |
getProcessImageByMenuId(java.lang.String menuId,
javax.servlet.http.HttpServletResponse response) |
RetVo |
importXml(java.lang.String modelId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
导入model的xml文件
|
java.lang.String |
main() |
RetVo |
modify(com.kdayun.workflow.engine.impl.persistence.entity.ModelEntity model)
更新流程模型
|
java.lang.String |
monitorMain() |
RetVo |
orgTreelist(java.lang.String node,
java.lang.Boolean isallorg)
获取机构数据 一般用于
|
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params)
模型列表
|
RetPageVo |
queryByJson(java.util.Map<java.lang.String,java.lang.Object> params)
模型列表
|
RetPageVo |
querytask(java.util.Map<java.lang.String,java.lang.Object> params)
获取机构流程实例
|
RetVo |
readCopy(CoreWorkflowController.CopyToParams params)
设置抄送的资料为已读
|
RetVo |
remove(java.util.Map<java.lang.String,java.lang.Object> params)
删除流程模型
|
RetVo |
revoketask(java.lang.String taskids)
退回流程
|
RetVo |
runingTask(java.lang.String dwid) |
RetVo |
start(java.lang.String processdefkey,
java.lang.String businessKey)
启动流程
|
RetVo |
startprocess(java.util.Map<java.lang.String,java.lang.Object> map) |
RetVo |
startProcessbyMenuId(java.util.Map<java.lang.String,java.lang.Object> variants)
发起流程使用表单Id
|
RetVo |
strategylist()
获取流程策略列表
|
RetVo |
updateAttachment(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
更新附件
|
RetVo |
updateprocess(java.util.Map<java.lang.String,java.lang.Object> map)
完成流程
|
protected java.util.List<java.io.InputStream> |
uploadStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@RequestMapping(value="/", method=GET) public java.lang.String main()
@ResponseBody @RequestMapping(value="model/query", method=POST) public RetPageVo query(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params)
params
- 参数@ResponseBody @RequestMapping(value="model/querybyjson", method=POST) public RetPageVo queryByJson(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params)
params
- 参数@ResponseBody @RequestMapping(value="model/add", method=PUT) public RetVo add(@RequestBody com.kdayun.workflow.engine.impl.persistence.entity.ModelEntity model)
model
- 模型@ResponseBody @RequestMapping(value="model/remove", method=DELETE) public RetVo remove(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params)
params
- 参数@ResponseBody @RequestMapping(value="model/modify", method=POST) public RetVo modify(@RequestBody com.kdayun.workflow.engine.impl.persistence.entity.ModelEntity model)
model
- 实体@ResponseBody @RequestMapping(value="/depolyment", method=GET) public RetVo deployMemtQuery(java.lang.String dwid)
dwid
- 机构id@ResponseBody @RequestMapping(value="/task", method=GET) public RetVo runingTask(@RequestParam(value="dwid",required=false) java.lang.String dwid)
@ResponseBody @RequestMapping(value="/start/{businessKey}/{procdefkey}", method=PUT) public RetVo start(@PathVariable(value="procdefkey") java.lang.String processdefkey, @PathVariable(value="businessKey") java.lang.String businessKey)
processdefkey
- 流程定义keybusinessKey
- 流程模型key@RequestMapping(value="/processimage/{processinstanceid}", method=GET) public void getProcessImage(@PathVariable(value="processinstanceid") java.lang.String processinstanceid, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
processinstanceid
- 流程实例idresponse
- 相应对象java.lang.Exception
- 出错会抛出异常@RequestMapping(value="/processimagebymenuid/{menuId}", method=GET) public void getProcessImageByMenuId(@PathVariable(value="menuId") java.lang.String menuId, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="/model/copyto", method=POST) public RetVo copyTo(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 参数java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/model/deploy", method=POST) public RetVo deploy(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 参数java.lang.Exception
- 出错会抛出异常@RequestMapping(value="/model/export", method=GET) public void export(@RequestParam java.lang.String modelId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
modelId
- 模型idrequest
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/model/import", method=POST) public RetVo importXml(@RequestParam java.lang.String modelId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
modelId
- 模型rwidrequest
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常protected java.util.List<java.io.InputStream> uploadStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@ResponseBody @RequestMapping(value="/strategy", method=GET) public RetVo strategylist() throws java.lang.Exception
java.lang.Exception
- 出错抛出异常@RequestMapping(value="/monitor", method=GET) public java.lang.String monitorMain()
@ResponseBody @RequestMapping(value="/orgtree", method=GET) public RetVo orgTreelist(@RequestParam(value="node") java.lang.String node, @RequestParam(value="isallorg",required=false,defaultValue="true") java.lang.Boolean isallorg)
node
- 节点isallorg
- 是否显示所有机构@ResponseBody @RequestMapping(value="model/querytask", method=POST) public RetPageVo querytask(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params)
params
- WFUSERID 流程用户id (模糊);KEYVALUE 查询值(模糊); ORGID 机构id (模糊)@ResponseBody @RequestMapping(value="model/deletetask", method=DELETE) public RetVo deletetask(@RequestBody java.util.Map<java.lang.String,java.lang.String> map) throws java.lang.Exception
map
- 参数java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="model/finishtask", method=POST) public RetVo finishtask(@RequestBody java.lang.String[] taskids) throws java.lang.Exception
taskids
- 任务id数组java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="model/revoketask", method=POST) public RetVo revoketask(@RequestBody java.lang.String taskids) throws java.lang.Exception
taskids
- 任务idsjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="model/agenttask", method=POST) public RetVo agenttask(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 参数mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="model/findliuc", method=POST) public RetVo findliuc(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 参数Mapjava.lang.Exception
- 出错抛出异常@ResponseBody @RequestMapping(value="model/getformdata", method=POST) public RetVo getformdata(@RequestBody java.lang.String processid) throws java.lang.Exception
processid
- 流程实例idjava.lang.Exception
- 出错抛出异常@ResponseBody @RequestMapping(value="model/getformdataEx", method=POST) public RetVo getformdataEx(java.lang.String processid) throws java.lang.Exception
processid
- 流程实例idjava.lang.Exception
- 出错抛出异常@ResponseBody @RequestMapping(value="startprocess") public RetVo startprocess(@RequestBody java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="startprocessbymenuid") public RetVo startProcessbyMenuId(@RequestBody java.util.Map<java.lang.String,java.lang.Object> variants) throws java.lang.Exception
variants
- 流程变量java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="updateprocess") public RetVo updateprocess(@RequestBody java.util.Map<java.lang.String,java.lang.Object> map) throws java.lang.Exception
map
- 必须参数processid 流程实例idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="getNextTaskAssigees", method=POST) public RetVo getNextTaskAssigees(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- 必须参数processid 流程实例idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="addattachment") public RetVo attachment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
request
- 请求对象response
- 响应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="updateattachment") public RetVo updateAttachment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
request
- 请求对象response
- 响应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="readcopy", method=POST) public RetVo readCopy(@RequestBody CoreWorkflowController.CopyToParams params) throws java.lang.Exception
params
- CopyToParamsjava.lang.Exception
- 出错会抛出异常