|
@@ -0,0 +1,135 @@
|
|
|
|
+export default class FlowOperationController {
|
|
|
|
+ // 启动流程实例并且提交表单信息
|
|
|
|
+ static startAndTakeUserTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ let url = '/admin/flow/flowOnlineOperation/startAndTakeUserTask';
|
|
|
|
+ if (axiosOption && axiosOption.processDefinitionKey) {
|
|
|
|
+ url += '/' + axiosOption.processDefinitionKey;
|
|
|
|
+ }
|
|
|
|
+ return sender.doUrl(url, 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获得流程以及工单信息
|
|
|
|
+ static listWorkOrder (sender, params, axiosOption, httpOption) {
|
|
|
|
+ let url = '/admin/flow/flowOnlineOperation/listWorkOrder';
|
|
|
|
+ if (axiosOption && axiosOption.processDefinitionKey) {
|
|
|
|
+ url += '/' + axiosOption.processDefinitionKey;
|
|
|
|
+ }
|
|
|
|
+ return sender.doUrl(url, 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 提交用户任务数据
|
|
|
|
+ static submitUserTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOnlineOperation/submitUserTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取历史流程数据
|
|
|
|
+ static viewHistoricProcessInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOnlineOperation/viewHistoricProcessInstance', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取用户任务数据
|
|
|
|
+ static viewUserTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOnlineOperation/viewUserTask', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取在线表单工作流以及工作流下表单列表
|
|
|
|
+ static listFlowEntryForm (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOnlineOperation/listFlowEntryForm', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 撤销工单
|
|
|
|
+ static cancelWorkOrder (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/cancelWorkOrder', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 多实例加签
|
|
|
|
+ static submitConsign (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/submitConsign', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 已办任务列表
|
|
|
|
+ static listHistoricTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/listHistoricTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取已办任务信息
|
|
|
|
+ static viewHistoricTaskInfo (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewHistoricTaskInfo', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 仅启动流程实例
|
|
|
|
+ static startOnly (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/startOnly', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获得流程定义初始化用户任务信息
|
|
|
|
+ static viewInitialTaskInfo (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewInitialTaskInfo', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取待办任务信息
|
|
|
|
+ static viewRuntimeTaskInfo (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewRuntimeTaskInfo', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取流程实例审批历史
|
|
|
|
+ static listFlowTaskComment (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/listFlowTaskComment', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取历史任务信息
|
|
|
|
+ static viewInitialHistoricTaskInfo (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewInitialHistoricTaskInfo', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取历史任务信息
|
|
|
|
+ static viewAllInitialHistoricTaskInfo (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewAllInitialHistoricTaskInfo', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获取所有待办任务
|
|
|
|
+ static listRuntimeTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/listRuntimeTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获得流程实例审批路径
|
|
|
|
+ static viewHighlightFlowData (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewHighlightFlowData', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获得流程实例的配置XML
|
|
|
|
+ static viewProcessBpmn (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/viewProcessBpmn', 'get', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获得所有历史流程实例
|
|
|
|
+ static listAllHistoricProcessInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/listAllHistoricProcessInstance', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 获得当前用户历史流程实例
|
|
|
|
+ static listHistoricProcessInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/listHistoricProcessInstance', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 终止流程
|
|
|
|
+ static stopProcessInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/stopProcessInstance', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 删除流程实例
|
|
|
|
+ static deleteProcessInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/deleteProcessInstance', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 催办
|
|
|
|
+ static remindRuntimeTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/remindRuntimeTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 催办消息列表
|
|
|
|
+ static listRemindingTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowMessage/listRemindingTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 驳回
|
|
|
|
+ static rejectRuntimeTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/rejectRuntimeTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 撤销
|
|
|
|
+ static revokeHistoricTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/revokeHistoricTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 挂起
|
|
|
|
+ static suspendInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/suspendInstance', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 激活
|
|
|
|
+ static activeInstance (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/activeInstance', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 转交
|
|
|
|
+ static turnTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/turnTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+ // 用户任务
|
|
|
|
+ static listUserTask (sender, params, axiosOption, httpOption) {
|
|
|
|
+ return sender.doUrl('/admin/flow/flowOperation/listUserTask', 'post', params, axiosOption, httpOption);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|