5 files changed
+207
-111
No files matched your search
+118
-59
@@ -2,28 +2,42 @@
|
|||||||
const Service = require('egg').Service;
|
const Service = require('egg').Service;
|
||||||
const _ = require("lodash");
|
const _ = require("lodash");
|
||||||
|
|
||||||
// TODO: 封装一下
|
const validateUtil = require('@jianghujs/jianghu/app/common/validateUtil');
|
||||||
const dayjs = require("dayjs");
|
|
||||||
const utc = require('dayjs/plugin/utc')
|
|
||||||
const timezone = require('dayjs/plugin/timezone') // dependent on utc plugin
|
|
||||||
dayjs.extend(utc)
|
|
||||||
dayjs.extend(timezone)
|
|
||||||
|
|
||||||
const idGenerateUtil = require("@jianghujs/jianghu/app/common/idGenerateUtil");
|
const idGenerateUtil = require("@jianghujs/jianghu/app/common/idGenerateUtil");
|
||||||
const { BizError, errorInfoEnum } = require("../constant/error");
|
const { BizError, errorInfoEnum } = require("../constant/error");
|
||||||
|
|
||||||
|
const appDataSchema = {};
|
||||||
|
appDataSchema.submitNode = Object.freeze({
|
||||||
|
type: 'object',
|
||||||
|
required: ['id', 'taskFormInput', 'taskId', 'type'],
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'number'
|
||||||
|
},
|
||||||
|
taskFormInput: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 10000
|
||||||
|
},
|
||||||
|
taskId: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
},
|
||||||
|
taskComment: {
|
||||||
|
type: 'string'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: true
|
||||||
|
});
|
||||||
|
|
||||||
class TaskService extends Service {
|
class TaskService extends Service {
|
||||||
async upcomingToUserId() {
|
async upcomingToUserId() {
|
||||||
const { userId, username } = this.ctx.userInfo;
|
const { userId } = this.ctx.userInfo;
|
||||||
this.ctx.request.body.appData.whereLike = { taskEditUserList: userId };
|
|
||||||
}
|
|
||||||
async upcomingToUserId() {
|
|
||||||
const { userId, username } = this.ctx.userInfo;
|
|
||||||
this.ctx.request.body.appData.whereLike = { taskEditUserList: userId };
|
this.ctx.request.body.appData.whereLike = { taskEditUserList: userId };
|
||||||
}
|
}
|
||||||
async whereToUserId() {
|
async whereToUserId() {
|
||||||
const { where } = this.ctx.request.body.appData;
|
const { where } = this.ctx.request.body.appData;
|
||||||
const { userId, username } = this.ctx.userInfo;
|
const { userId } = this.ctx.userInfo;
|
||||||
where.createByUser = userId;
|
where.createByUser = userId;
|
||||||
}
|
}
|
||||||
async whereToViewUserId() {
|
async whereToViewUserId() {
|
||||||
@@ -38,18 +52,43 @@ class TaskService extends Service {
|
|||||||
*/
|
*/
|
||||||
async createTask() {
|
async createTask() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
// const { workflowId, taskTitle, taskFormStructure, taskFormData } = actionData;
|
|
||||||
const { workflowId, taskTitle, workflowForm, workflowFormData, workflowConfigCustom } = actionData;
|
const { workflowId, taskTitle, workflowForm, workflowFormData, workflowConfigCustom } = actionData;
|
||||||
const { userId, username } = this.ctx.userInfo;
|
const { userId } = this.ctx.userInfo;
|
||||||
const taskId = await idGenerateUtil.uuid();
|
const taskId = await idGenerateUtil.uuid();
|
||||||
const workflow = await jianghuKnex('workflow', this.ctx).where({workflowId}).first();
|
const workflow = await jianghuKnex('workflow', this.ctx).where({workflowId}).first();
|
||||||
if (!workflow) {
|
if (!workflow) {
|
||||||
throw new BizError(errorInfoEnum.workflow_not_found)
|
throw new BizError(errorInfoEnum.workflow_not_found)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const workflowConfig = JSON.parse(workflow.workflowConfig || '{}');
|
const workflowConfig = JSON.parse(workflow.workflowConfig || '{}');
|
||||||
|
/*
|
||||||
|
* workflowConfig = {
|
||||||
|
* "nodeList": [...],
|
||||||
|
* "lineList": [...],
|
||||||
|
* "mode": "serial"
|
||||||
|
* }
|
||||||
|
* nodeList: 流程编辑器中的节点
|
||||||
|
* lineList: 流程编辑器中节点间的连线
|
||||||
|
* mode: serial | parallel
|
||||||
|
* serial: 仅启动下一阶段的任务
|
||||||
|
* parallel: 后续任务都启动
|
||||||
|
*
|
||||||
|
* workflowForm = [
|
||||||
|
* {
|
||||||
|
* "id": "input_kBIjNmho",
|
||||||
|
* "type": "input",
|
||||||
|
* // ...
|
||||||
|
* },
|
||||||
|
*
|
||||||
|
* // ...
|
||||||
|
* ]
|
||||||
|
* type: input | short | single | multiple
|
||||||
|
* input: 单行文本
|
||||||
|
* short: 多行文本
|
||||||
|
* single: 单选框
|
||||||
|
* multiple: 多选框
|
||||||
|
*/
|
||||||
let {mode = 'serial', nodeList = [], lineList = []} = workflowConfig;
|
let {mode = 'serial', nodeList = [], lineList = []} = workflowConfig;
|
||||||
const nodeListOfUserTaskNode = (JSON.parse(workflowConfigCustom || '{}')).nodeListOfUserTaskNode || []
|
const nodeListOfUserTaskNode = (JSON.parse(workflowConfigCustom || '{}')).nodeListOfUserTaskNode || []
|
||||||
// 合并定制的审批人和workflow的审批人
|
// 合并定制的审批人和workflow的审批人
|
||||||
@@ -104,7 +143,7 @@ class TaskService extends Service {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
async getGroupUserList(groupId) {
|
async getGroupUserList(groupId) {
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
const userList = await jianghuKnex('_user_group_role').where({groupId}).select('userId');
|
const userList = await jianghuKnex('_user_group_role').where({groupId}).select('userId');
|
||||||
return userList.map(e => {
|
return userList.map(e => {
|
||||||
return e.userId
|
return e.userId
|
||||||
@@ -124,7 +163,7 @@ class TaskService extends Service {
|
|||||||
}
|
}
|
||||||
async taskCareUser() {
|
async taskCareUser() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
const { userId: careUser, taskId } = actionData;
|
const { userId: careUser, taskId } = actionData;
|
||||||
const { userId } = this.ctx.userInfo;
|
const { userId } = this.ctx.userInfo;
|
||||||
const taskInfo = await jianghuKnex('task').where({taskId}).first();
|
const taskInfo = await jianghuKnex('task').where({taskId}).first();
|
||||||
@@ -148,7 +187,7 @@ class TaskService extends Service {
|
|||||||
*/
|
*/
|
||||||
async getTaskHistoryInfo() {
|
async getTaskHistoryInfo() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
const { id } = actionData;
|
const { id } = actionData;
|
||||||
const { userId } = this.ctx.userInfo;
|
const { userId } = this.ctx.userInfo;
|
||||||
const taskInfo = await jianghuKnex('task').where({id}).first();
|
const taskInfo = await jianghuKnex('task').where({id}).first();
|
||||||
@@ -309,26 +348,14 @@ class TaskService extends Service {
|
|||||||
}
|
}
|
||||||
async submitNode() {
|
async submitNode() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
|
validateUtil.validate(appDataSchema.submitNode , actionData);
|
||||||
const { jianghuKnex } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
await jianghuKnex.transaction(async trx => {
|
await jianghuKnex.transaction(async trx => {
|
||||||
await this.buildNext(actionData, trx);
|
await this.buildNext(actionData, trx);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async buildNext(actionData, trx) {
|
|
||||||
let { type, id, taskComment, taskFormInput } = actionData;
|
|
||||||
const { userId } = this.ctx.userInfo;
|
|
||||||
|
|
||||||
// 准备任务数据
|
|
||||||
const taskInfo = await trx('task').where({id}).first();
|
|
||||||
delete taskInfo.id;
|
|
||||||
const {mode = 'serial', nodeList = [], lineList = []} = JSON.parse(taskInfo.workflowConfig || '{}');
|
|
||||||
const userNode = nodeList.filter(e => e.id.includes('userTask') || e.id.includes('receiveTask') );
|
|
||||||
const userTaskCount = userNode.reduce((acc, cur) => acc += cur.isNeedAllApproval? cur.assignValue.length: 1, 0);
|
|
||||||
const endNode = nodeList.find(e => e.id.includes('end-'));
|
|
||||||
const nLineList = JSON.parse(taskInfo.taskNextConfigList);
|
|
||||||
const lines = nLineList.filter(e => e.type === type);
|
|
||||||
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
|
|
||||||
|
|
||||||
|
async saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, lineType) {
|
||||||
// 写入exec历史
|
// 写入exec历史
|
||||||
const taskHistory = await trx('task_history', this.ctx).where({taskId: taskInfo.taskId}).orderBy('operationAt', 'desc').select();
|
const taskHistory = await trx('task_history', this.ctx).where({taskId: taskInfo.taskId}).orderBy('operationAt', 'desc').select();
|
||||||
const [prevHistory] = taskHistory;
|
const [prevHistory] = taskHistory;
|
||||||
@@ -337,14 +364,13 @@ class TaskService extends Service {
|
|||||||
// taskFormInput = JSON.stringify(taskFormInput);
|
// taskFormInput = JSON.stringify(taskFormInput);
|
||||||
// const historyTaskFormInput = JSON.parse(taskInfo.taskFormInput)
|
// const historyTaskFormInput = JSON.parse(taskInfo.taskFormInput)
|
||||||
// historyTaskFormInput .input = taskTpl.input;
|
// historyTaskFormInput .input = taskTpl.input;
|
||||||
taskFormInput = taskFormInput || taskInfo.taskFormInput;
|
|
||||||
const history = {
|
const history = {
|
||||||
...taskInfo,
|
...taskInfo,
|
||||||
// taskFormInput: JSON.stringify(historyTaskFormInput),
|
// taskFormInput: JSON.stringify(historyTaskFormInput),
|
||||||
taskFormInput,
|
taskFormInput,
|
||||||
taskExplain: currentNode.label,
|
taskExplain: currentNode.label,
|
||||||
taskConfigId: currentNode.id,
|
taskConfigId: currentNode.id,
|
||||||
taskHandleDesc: currentNode.id.includes('start-') ? '流程开始' : type,
|
taskHandleDesc: currentNode.id.includes('start-') ? '流程开始' : lineType,
|
||||||
taskLineFrom: (lines.map(e => {return e.form})).join(','),
|
taskLineFrom: (lines.map(e => {return e.form})).join(','),
|
||||||
taskLineTo: (lines.map(e => {return e.to})).join(','),
|
taskLineTo: (lines.map(e => {return e.to})).join(','),
|
||||||
taskLineLabel: (lines.map(e => {return e.type + '-' + e.label})).join(','),
|
taskLineLabel: (lines.map(e => {return e.type + '-' + e.label})).join(','),
|
||||||
@@ -354,6 +380,60 @@ class TaskService extends Service {
|
|||||||
delete history.taskEditedUserList;
|
delete history.taskEditedUserList;
|
||||||
await trx('task_history', this.ctx).insert(history);
|
await trx('task_history', this.ctx).insert(history);
|
||||||
|
|
||||||
|
return history;
|
||||||
|
}
|
||||||
|
|
||||||
|
async saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history) {
|
||||||
|
taskEditUserList = await this.getProcessUserList([currentNode]);
|
||||||
|
const endHistory = {
|
||||||
|
...history,
|
||||||
|
taskStatus: 'end',
|
||||||
|
taskExplain: '结束',
|
||||||
|
taskConfigId: endNode.id,
|
||||||
|
taskHandleDesc: '流程结束',
|
||||||
|
taskLineFrom: line.from,
|
||||||
|
taskLineTo: line.to,
|
||||||
|
taskLineLabel: line.type + '-' + line.label,
|
||||||
|
taskCostDuration: 0
|
||||||
|
}
|
||||||
|
await trx('task_history', this.ctx).insert(endHistory);
|
||||||
|
await trx('task').insert({
|
||||||
|
...taskInfo,
|
||||||
|
taskId: taskInfo.taskId,
|
||||||
|
taskFormInput: taskInfo.taskFormInput,
|
||||||
|
taskNextConfigList: JSON.stringify(nextLineList),
|
||||||
|
taskLineTypeList: endNode.lineTypeList,
|
||||||
|
taskEditUserList,
|
||||||
|
taskConfigId: endNode.id,
|
||||||
|
taskStatus: 'end'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存历史任务,并生成下一阶段的任务
|
||||||
|
async buildNext(actionData, trx) {
|
||||||
|
let { type, id, taskComment, taskFormInput } = actionData;
|
||||||
|
const { userId } = this.ctx.userInfo;
|
||||||
|
|
||||||
|
// 准备任务数据
|
||||||
|
const taskInfo = await trx('task').where({id}).first();
|
||||||
|
delete taskInfo.id;
|
||||||
|
/*
|
||||||
|
* mode: serial / parallel
|
||||||
|
* serial: 仅启动下一阶段的任务
|
||||||
|
* parallel: 后续任务都启动
|
||||||
|
*/
|
||||||
|
const {mode = 'serial', nodeList = [], lineList = []} = JSON.parse(taskInfo.workflowConfig || '{}');
|
||||||
|
const userNode = nodeList.filter(e => e.id.includes('userTask') || e.id.includes('receiveTask') );
|
||||||
|
const userTaskCount = userNode.reduce((acc, cur) => acc += cur.isNeedAllApproval? cur.assignValue.length: 1, 0);
|
||||||
|
const endNode = nodeList.find(e => e.id.includes('end-'));
|
||||||
|
const nLineList = JSON.parse(taskInfo.taskNextConfigList);
|
||||||
|
// 取同意类型的连线
|
||||||
|
const lines = nLineList.filter(e => e.type === type);
|
||||||
|
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
|
||||||
|
taskFormInput = taskFormInput || taskInfo.taskFormInput;
|
||||||
|
|
||||||
|
const history = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
|
||||||
|
|
||||||
// 未配置连线时,默认添加拒绝连线到end节点
|
// 未配置连线时,默认添加拒绝连线到end节点
|
||||||
if (endNode && !lines.length) {
|
if (endNode && !lines.length) {
|
||||||
lines.push({
|
lines.push({
|
||||||
@@ -391,29 +471,8 @@ class TaskService extends Service {
|
|||||||
line.toInterruptEnd === true ||
|
line.toInterruptEnd === true ||
|
||||||
(mode == 'parallel' && taskHistory.length == userTaskCount && line.type != '拒绝')
|
(mode == 'parallel' && taskHistory.length == userTaskCount && line.type != '拒绝')
|
||||||
) {
|
) {
|
||||||
taskEditUserList = await this.getProcessUserList([currentNode]);
|
await this.saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history);
|
||||||
const endHistory = {
|
|
||||||
...history,
|
|
||||||
taskStatus: 'end',
|
|
||||||
taskExplain: '结束',
|
|
||||||
taskConfigId: endNode.id,
|
|
||||||
taskHandleDesc: '流程结束',
|
|
||||||
taskLineFrom: line.from,
|
|
||||||
taskLineTo: line.to,
|
|
||||||
taskLineLabel: line.type + '-' + line.label,
|
|
||||||
taskCostDuration: 0
|
|
||||||
}
|
|
||||||
await trx('task_history', this.ctx).insert(endHistory);
|
|
||||||
await trx('task').insert({
|
|
||||||
...taskInfo,
|
|
||||||
taskId: taskInfo.taskId,
|
|
||||||
taskFormInput: taskInfo.taskFormInput,
|
|
||||||
taskNextConfigList: JSON.stringify(nextLineList),
|
|
||||||
taskLineTypeList: endNode.lineTypeList,
|
|
||||||
taskEditUserList,
|
|
||||||
taskConfigId: endNode.id,
|
|
||||||
taskStatus: 'end'
|
|
||||||
});
|
|
||||||
// 默认拒绝节点,删除全部任务,执行interruptHook
|
// 默认拒绝节点,删除全部任务,执行interruptHook
|
||||||
if (line.toInterruptEnd) {
|
if (line.toInterruptEnd) {
|
||||||
await trx('task', this.ctx).where({taskId: taskInfo.taskId, taskStatus: 'running'}).delete();
|
await trx('task', this.ctx).where({taskId: taskInfo.taskId, taskStatus: 'running'}).delete();
|
||||||
|
|||||||
+49
-11
@@ -1,21 +1,57 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const Service = require('egg').Service;
|
const Service = require('egg').Service;
|
||||||
|
|
||||||
// TODO: 封装一下
|
const validateUtil = require('@jianghujs/jianghu/app/common/validateUtil');
|
||||||
const dayjs = require("dayjs");
|
|
||||||
const utc = require('dayjs/plugin/utc')
|
|
||||||
const timezone = require('dayjs/plugin/timezone') // dependent on utc plugin
|
|
||||||
dayjs.extend(utc)
|
|
||||||
dayjs.extend(timezone)
|
|
||||||
|
|
||||||
const idGenerateUtil = require("@jianghujs/jianghu/app/common/idGenerateUtil");
|
const idGenerateUtil = require("@jianghujs/jianghu/app/common/idGenerateUtil");
|
||||||
const { BizError, errorInfoEnum } = require("../constant/error");
|
const { BizError, errorInfoEnum } = require("../constant/error");
|
||||||
|
|
||||||
|
const appDataSchema = {};
|
||||||
|
appDataSchema.createWorkflowTask = Object.freeze({
|
||||||
|
type: 'object',
|
||||||
|
required: ['formItemList', 'workflowId', 'workflowConfigCustom'],
|
||||||
|
properties: {
|
||||||
|
formItemList: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'object',
|
||||||
|
required: ['id', "typeName", "type", "statement"],
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
},
|
||||||
|
typeName: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
},
|
||||||
|
statement: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
},
|
||||||
|
answer: {
|
||||||
|
type: 'string', minLength: 1, maxLength: 200
|
||||||
|
}
|
||||||
|
},
|
||||||
|
additionalProperties: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
workflowId: {type: 'string', minLength: 1, maxLength: 100},
|
||||||
|
workflowConfigCustom: {type: 'string', minLength: 1, maxLength: 10000},
|
||||||
|
},
|
||||||
|
additionalProperties: true
|
||||||
|
});
|
||||||
|
|
||||||
|
appDataSchema.getTaskHistory = Object.freeze({
|
||||||
|
type: 'string',
|
||||||
|
minLength: 1,
|
||||||
|
maxLength: 200
|
||||||
|
});
|
||||||
|
|
||||||
class WorkflowService extends Service {
|
class WorkflowService extends Service {
|
||||||
|
|
||||||
async createTplId() {
|
async createTplId() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
actionData.formId = await idGenerateUtil.idPlus({
|
actionData.formId = await idGenerateUtil.idPlus({
|
||||||
knex: jianghuKnex,
|
knex: jianghuKnex,
|
||||||
startValue: 1000,
|
startValue: 1000,
|
||||||
@@ -25,7 +61,7 @@ class WorkflowService extends Service {
|
|||||||
}
|
}
|
||||||
async createWorkflowId() {
|
async createWorkflowId() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
actionData.workflowId = await idGenerateUtil.idPlus({
|
actionData.workflowId = await idGenerateUtil.idPlus({
|
||||||
knex: jianghuKnex,
|
knex: jianghuKnex,
|
||||||
startValue: 1000,
|
startValue: 1000,
|
||||||
@@ -36,7 +72,7 @@ class WorkflowService extends Service {
|
|||||||
|
|
||||||
async assignTplData() {
|
async assignTplData() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
const { jianghuKnex, config } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
let { tplId } = actionData;
|
let { tplId } = actionData;
|
||||||
const tplIds = tplId ? tplId.split(',') : [];
|
const tplIds = tplId ? tplId.split(',') : [];
|
||||||
if (tplIds.length) {
|
if (tplIds.length) {
|
||||||
@@ -59,12 +95,13 @@ class WorkflowService extends Service {
|
|||||||
}
|
}
|
||||||
console.log(actionData);
|
console.log(actionData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建流程审批
|
* 创建流程审批
|
||||||
*/
|
*/
|
||||||
async createWorkflowTask() {
|
async createWorkflowTask() {
|
||||||
const { actionData } = this.ctx.request.body.appData;
|
const { actionData } = this.ctx.request.body.appData;
|
||||||
|
validateUtil.validate(appDataSchema.createWorkflowTask , actionData);
|
||||||
const { jianghuKnex } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
const { formItemList, workflowConfigCustom, workflowId } = actionData;
|
const { formItemList, workflowConfigCustom, workflowId } = actionData;
|
||||||
|
|
||||||
@@ -90,6 +127,7 @@ class WorkflowService extends Service {
|
|||||||
*/
|
*/
|
||||||
async getTaskHistory() {
|
async getTaskHistory() {
|
||||||
const { taskId } = this.ctx.request.body.appData.actionData;
|
const { taskId } = this.ctx.request.body.appData.actionData;
|
||||||
|
validateUtil.validate(appDataSchema.getTaskHistory , taskId);
|
||||||
const { jianghuKnex } = this.app;
|
const { jianghuKnex } = this.app;
|
||||||
|
|
||||||
const taskInfo = await jianghuKnex('task', this.ctx).where({taskId}).first();
|
const taskInfo = await jianghuKnex('task', this.ctx).where({taskId}).first();
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
class="jh-v-input"
|
class="jh-v-input"
|
||||||
label="可写模板"
|
label="可写模板"
|
||||||
multiple
|
multiple
|
||||||
v-model="node.formId"
|
v-model="node.formIdEdit"
|
||||||
></v-select>
|
></v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3" >
|
<v-col cols="12" class=" pb-3" >
|
||||||
|
|||||||
@@ -320,7 +320,7 @@
|
|||||||
this.updateItem = _.cloneDeep(funObj);
|
this.updateItem = _.cloneDeep(funObj);
|
||||||
this.updateItem.workflowConfig = JSON.parse(funObj.workflowConfig);
|
this.updateItem.workflowConfig = JSON.parse(funObj.workflowConfig);
|
||||||
this.updateItem.currentNode = this.updateItem.workflowConfig.nodeList.find(e => e.id === this.updateItem.taskConfigId);
|
this.updateItem.currentNode = this.updateItem.workflowConfig.nodeList.find(e => e.id === this.updateItem.taskConfigId);
|
||||||
this.updateItem.readonlyFormIdList = this.updateItem.taskFormInput.formList.map(form => form.id).filter(formId => this.updateItem.currentNode.formId.indexOf(formId) === -1);
|
this.updateItem.readonlyFormIdList = this.updateItem.taskFormInput.formList.map(form => form.id).filter(formId => (this.updateItem.currentNode.formIdEdit || '').indexOf(formId) === -1);
|
||||||
this.updateItem.taskHistoryList = []; // 审核历史
|
this.updateItem.taskHistoryList = []; // 审核历史
|
||||||
this.updateItem.taskComment = ''; // 备注
|
this.updateItem.taskComment = ''; // 备注
|
||||||
this.lineTypeList = []; // 所有操作按钮
|
this.lineTypeList = []; // 所有操作按钮
|
||||||
@@ -337,7 +337,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
async submitForReview(lineType) {
|
async submitForReview(lineType) {
|
||||||
debugger
|
|
||||||
await window.vtoast.loading("提交审核");
|
await window.vtoast.loading("提交审核");
|
||||||
await window.jianghuAxios({
|
await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
+38
-38
@@ -102,16 +102,14 @@ CREATE TABLE `_page` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of _page
|
-- Records of _page
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `_page` VALUES (2, 'help', '帮助', 'helpV3', 'dynamicInMenu', '11', 'insert', NULL, NULL, NULL);
|
|
||||||
INSERT INTO `_page` VALUES (3, 'login', '登陆', 'loginV3', '', '', 'insert', NULL, NULL, NULL);
|
INSERT INTO `_page` (pageId,pageName,pageFile,pageType,sort,operation,operationByUserId,operationByUser,operationAt) VALUES
|
||||||
INSERT INTO `_page` VALUES (10, 'workflowManagement', '课程设计', NULL, 'showInMenu', '1', 'update', 'vscode', 'vscode', '2022-10-08T09:35:35+08:00');
|
('help','帮助','helpV4','dynamicInMenu','11','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_page` VALUES (11, 'workflowEditor', '流程编辑', NULL, 'dynamicInMenu', '1', 'insert', NULL, NULL, NULL);
|
('login','登陆','loginV4','','','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_page` VALUES (15, 'taskCreateManagement', '课程报名', NULL, 'showInMenu', '2', 'update', 'vscode', 'vscode', '2022-10-08T09:48:22+08:00');
|
('workflowManagement','发起任务',NULL,'showInMenu','1','update','vscode','vscode','2022-10-08T09:35:35+08:00'),
|
||||||
INSERT INTO `_page` VALUES (16, 'taskICreateManagement', '我的课程', NULL, 'showInMenu', '3', 'update', 'vscode', 'vscode', '2022-10-08T09:42:17+08:00');
|
('workflowEditor','流程编辑',NULL,'dynamicInMenu','1','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_page` VALUES (17, 'taskUpcomingManagement', '我的待办', NULL, 'dynamicInMenu', '4', 'update', 'vscode', 'vscode', '2022-10-08T09:42:24+08:00');
|
('todo','我的任务',NULL,'showInMenu','7','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_page` VALUES (18, 'taskHistoryManagement', '课程详情', NULL, 'dynamicInMenu', '5', 'update', 'vscode', 'vscode', '2022-10-11T10:06:40+08:00');
|
('taskHistory','任务列表',NULL,'showInMenu','8','insert',NULL,NULL,NULL);
|
||||||
INSERT INTO `_page` VALUES (26, 'taskRelatedManagement', '我相关的', NULL, 'dynamicInMenu', '6', 'update', 'vscode', 'vscode', '2022-10-08T09:42:31+08:00');
|
|
||||||
INSERT INTO `_page` VALUES (35, 'taskManagement', '课程管理', NULL, 'dynamicInMenu', '9', 'update', 'vscode', 'vscode', '2022-10-11T10:06:49+08:00');
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for _record_history
|
-- Table structure for _record_history
|
||||||
@@ -167,29 +165,25 @@ CREATE TABLE `_resource` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of _resource
|
-- Records of _resource
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `_resource` VALUES (1, NULL, NULL, 'allPage', 'getChunkInfo', '✅ 文件分片下载-获取分片信息', 'service', '{}', '{\"service\": \"file\", \"serviceFunction\": \"getChunkInfo\"}', '', '', 'jhUpdate', 'admin', 'adminName', '2022-05-03T12:46:39+08:00');
|
|
||||||
INSERT INTO `_resource` VALUES (2, NULL, NULL, 'allPage', 'uploadFileDone', '✅ 文件分片上传-所有分片上传完毕', 'service', '{}', '{\"service\": \"file\", \"serviceFunction\": \"uploadFileDone\"}', '', '', 'update', NULL, NULL, '2022-05-04T16:02:58+08:00');
|
INSERT INTO `_resource` (accessControlTable,resourceHook,pageId,actionId,`desc`,resourceType,appDataSchema,resourceData,requestDemo,responseDemo,operation,operationByUserId,operationByUser,operationAt) VALUES
|
||||||
INSERT INTO `_resource` VALUES (3, NULL, NULL, 'allPage', 'httpUploadByStream', '✅ 文件分片上传-http文件流', 'service', '{}', '{\"service\": \"file\", \"serviceFunction\": \"uploadFileChunkByStream\"}', '', '', 'update', NULL, NULL, '2022-05-04T16:02:58+08:00');
|
(NULL,NULL,'login','passwordLogin','✅登陆','service',NULL,'{"service": "user", "serviceFunction": "passwordLogin"}','','','update',NULL,NULL,'2022-06-30T09:59:55+08:00'),
|
||||||
INSERT INTO `_resource` VALUES (4, NULL, NULL, 'allPage', 'httpUploadByBase64', '✅ 文件分片上传-http base64', 'service', '{}', '{\"service\": \"file\", \"serviceFunction\": \"uploadFileChunkByBase64\"}', '', '', 'update', NULL, NULL, '2022-04-28T14:43:10+08:00');
|
(NULL,NULL,'allPage','logout','✅登出','service',NULL,'{"service": "user", "serviceFunction": "logout"}','','','update',NULL,NULL,'2022-04-25T14:39:56+08:00'),
|
||||||
INSERT INTO `_resource` VALUES (5, NULL, NULL, 'allPage', 'httpDownloadByBase64', '✅ 文件分片下载-http base64', 'service', '{}', '{\"service\": \"file\", \"serviceFunction\": \"downloadFileChunkByBase64\"}', '', '', 'update', NULL, NULL, '2022-04-30T14:52:38+08:00');
|
(NULL,NULL,'allPage','refreshToken','✅刷新authToken','service',NULL,'{"service": "user", "serviceFunction": "refreshToken"}','','','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (6, NULL, NULL, 'login', 'passwordLogin', '✅登陆', 'service', NULL, '{\"service\": \"user\", \"serviceFunction\": \"passwordLogin\"}', '', '', 'update', NULL, NULL, '2022-06-30T09:59:55+08:00');
|
(NULL,NULL,'allPage','userInfo','✅获取用户信息','service',NULL,'{"service": "user", "serviceFunction": "userInfo"}','','','update',NULL,NULL,'2022-07-05T16:14:31+08:00'),
|
||||||
INSERT INTO `_resource` VALUES (7, NULL, NULL, 'allPage', 'logout', '✅登出', 'service', NULL, '{\"service\": \"user\", \"serviceFunction\": \"logout\"}', '', '', 'update', NULL, NULL, '2022-04-25T14:39:56+08:00');
|
(NULL,NULL,'resetUserPassword','resetPassword','✅重置密码','service',NULL,'{"service": "user", "serviceFunction": "resetPassword"}','','','update',NULL,NULL,'2022-04-25T15:31:12+08:00'),
|
||||||
INSERT INTO `_resource` VALUES (8, NULL, NULL, 'allPage', 'refreshToken', '✅刷新authToken', 'service', NULL, '{\"service\": \"user\", \"serviceFunction\": \"refreshToken\"}', '', '', 'insert', NULL, NULL, NULL);
|
(NULL,'','workflowManagement','selectUserList','✅查询-用户列表','sql',NULL,'{"table": "_user", "operation": "select"}','','','update','vscode','vscode','2022-07-04T22:27:58+08:00'),
|
||||||
INSERT INTO `_resource` VALUES (9, NULL, NULL, 'allPage', 'userInfo', '✅获取用户信息', 'service', NULL, '{\"service\": \"user\", \"serviceFunction\": \"userInfo\"}', '', '', 'update', NULL, NULL, '2022-07-05T16:14:31+08:00');
|
(NULL,'','workflowManagement','selectGroupList','✅查询-组列表','sql',NULL,'{"table": "_group", "operation": "select"}','','','update','vscode','vscode','2022-07-04T22:27:58+08:00'),
|
||||||
INSERT INTO `_resource` VALUES (10, NULL, NULL, 'resetUserPassword', 'resetPassword', '✅重置密码', 'service', NULL, '{\"service\": \"user\", \"serviceFunction\": \"resetPassword\"}', '', '', 'update', NULL, NULL, '2022-04-25T15:31:12+08:00');
|
(NULL,NULL,'workflowManagement','selectItemList','✅workflowManagement查询-查询列表','sql','{}','{"table": "workflow", "operation": "select"}','','','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (11, NULL, NULL, 'allPage', 'uploadByStream', '✅文件上传(文件流)', 'service', NULL, '{\"service\": \"file\", \"serviceFunction\": \"uploadFileChunkByStream\"}', '', '', 'update', NULL, NULL, '2022-02-22T19:36:33+08:00');
|
(NULL,'{"before":[{"service":"workflow","serviceFunction":"createWorkflowId"}]}','workflowManagement','insertItem','✅workflowManagement查询-添加成员','sql','{"type":"object","required":["actionData"],"properties":{"actionData":{"type":"object","required":["workflowName","workflowId","workflowConfig","workflowForm"],"properties":{"workflowName":{"type":"string"},"workflowId":{"type":"number"},"workflowConfig":{"type":"string"},"workflowForm":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}','{"table": "workflow", "operation": "jhInsert"}','','','insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (12, NULL, NULL, 'allPage', 'uploadByBase64', '✅文件上传(base64)', 'service', NULL, '{\"service\": \"file\", \"serviceFunction\": \"uploadFileChunkByBase64\"}', '', '', 'update', NULL, NULL, '2022-02-22T18:59:14+08:00');
|
(NULL,NULL,'workflowManagement','updateItem','✅workflowManagement查询-更新成员','sql','{"type":"object","required":["actionData"],"properties":{"actionData":{"type":"object","required":["workflowName","workflowId","workflowConfig","workflowForm"],"properties":{"workflowName":{"type":"string"},"workflowId":{"type":"number"},"workflowConfig":{"type":"string"},"workflowForm":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}','{"table": "workflow", "operation": "jhUpdate"}','','','insert',NULL,NULL,NULL);
|
||||||
INSERT INTO `_resource` VALUES (234, NULL, '', 'workflowManagement', 'selectUserList', '✅查询-用户列表', 'sql', NULL, '{\"table\": \"_user\", \"operation\": \"select\"}', '', '', 'update', 'vscode', 'vscode', '2022-07-04T22:27:58+08:00');
|
INSERT INTO `_resource` (accessControlTable,resourceHook,pageId,actionId,`desc`,resourceType,appDataSchema,resourceData,requestDemo,responseDemo,operation,operationByUserId,operationByUser,operationAt) VALUES
|
||||||
INSERT INTO `_resource` VALUES (235, NULL, '', 'workflowManagement', 'selectGroupList', '✅查询-组列表', 'sql', NULL, '{\"table\": \"_group\", \"operation\": \"select\"}', '', '', 'update', 'vscode', 'vscode', '2022-07-04T22:27:58+08:00');
|
(NULL,NULL,'todo','selectItemList','✅查询列表','sql','{}','{ "table": "task", "operation": "select" }',NULL,NULL,'insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (236, NULL, NULL, 'taskCreateManagement', 'selectWorkflowList', '✅获取流程列表', 'sql', NULL, '{\"table\": \"workflow\", \"operation\": \"select\"}', '', '', 'update', 'vscode', 'vscode', '2022-10-12T23:34:50+08:00');
|
(NULL,NULL,'todo','submitNode','✅更新','service','{}','{ "service": "task", "serviceFunction": "submitNode" }',NULL,NULL,'insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (238, NULL, '{}', 'taskCreateManagement', 'insertItem', '✅新增任务', 'service', NULL, '{\"service\":\"task\",\"serviceFunction\":\"createTask\"}', '', '', 'update', 'vscode', 'vscode', '2022-10-12T23:34:50+08:00');
|
(NULL,NULL,'todo','selectHistoryList','✅已处理','sql','{"type":"object","required":["where","whereLike","orderBy"],"properties":{"where":{"type":"object","required":["taskStatus"],"properties":{"taskStatus":{"type":"string"}}},"whereLike":{"type":"object","required":["taskEditUserList","taskConfigId"],"properties":{"taskEditUserList":{"type":"string"},"taskConfigId":{"type":"string"}}},"orderBy":{"type":"array","minItems":1,"items":{"type":"object","required":["column","order"],"properties":{"column":{"type":"string"},"order":{"type":"string"}}}}},"additionalProperties":true}','{ "table": "task_history", "operation": "select" }',NULL,NULL,'insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (239, NULL, '{\"before\":[{\"service\":\"task\",\"serviceFunction\":\"whereToUserId\"}]}', 'taskICreateManagement', 'selectItemList', '✅taskManagement查询-查询列表', 'sql', '{}', '{\"table\": \"task\", \"operation\": \"select\"}', '', '', 'update', 'vscode', 'vscode', '2022-07-02T22:48:31+08:00');
|
(NULL,NULL,'workflowManagement','insertTask','✅添加','service','{}','{ "service": "workflow", "serviceFunction": "createWorkflowTask" }',NULL,NULL,'insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (243, NULL, '', 'taskHistoryManagement', 'getTaskHistoryInfo', '获取任务历史详情', 'service', NULL, '{\"service\": \"task\", \"serviceFunction\": \"getTaskHistoryInfo\"}', '', '', 'update', 'vscode', 'vscode', '2022-07-04T22:22:35+08:00');
|
(NULL,'{"after":[{"service":"workflow","serviceFunction":"appendUsername"}]}','taskHistory','selectItemList','✅作业-创建作业','sql','{"type":"object","required":["orderBy"],"properties":{"orderBy":{"type":"array","minItems":1,"items":{"type":"object","required":["column","order"],"properties":{"column":{"type":"string"},"order":{"type":"string"}}}}},"additionalProperties":true}','{ "table": "task", "operation": "select" }',NULL,NULL,'insert',NULL,NULL,NULL),
|
||||||
INSERT INTO `_resource` VALUES (244, NULL, '', 'taskHistoryManagement', 'submitNode', '节点流转', 'service', NULL, '{\"service\": \"task\", \"serviceFunction\": \"submitNode\"}', '', '', 'update', 'vscode', 'vscode', '2022-07-04T22:22:35+08:00');
|
(NULL,NULL,'todo','getTaskHistory','✅添加','service','{}','{ "service": "workflow", "serviceFunction": "getTaskHistory" }',NULL,NULL,'insert',NULL,NULL,NULL);
|
||||||
INSERT INTO `_resource` VALUES (255, NULL, NULL, 'workflowManagement', 'selectItemList', '✅workflowManagement查询-查询列表', 'sql', '{}', '{\"table\": \"workflow\", \"operation\": \"select\"}', '', '', 'insert', NULL, NULL, NULL);
|
|
||||||
INSERT INTO `_resource` VALUES (256, NULL, '{\"before\":[{\"service\":\"workflow\",\"serviceFunction\":\"createWorkflowId\"}]}', 'workflowManagement', 'insertItem', '✅workflowManagement查询-添加成员', 'sql', '{}', '{\"table\": \"workflow\", \"operation\": \"jhInsert\"}', '', '', 'insert', NULL, NULL, NULL);
|
|
||||||
INSERT INTO `_resource` VALUES (257, NULL, NULL, 'workflowManagement', 'updateItem', '✅workflowManagement查询-更新成员', 'sql', '{}', '{\"table\": \"workflow\", \"operation\": \"jhUpdate\"}', '', '', 'insert', NULL, NULL, NULL);
|
|
||||||
INSERT INTO `_resource` VALUES (258, NULL, NULL, 'workflowManagement', 'deleteItem', '✅workflowManagement查询-删除信息', 'sql', '{}', '{\"table\": \"workflow\", \"operation\": \"jhDelete\"}', '', '', 'insert', NULL, NULL, NULL);
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for _role
|
-- Table structure for _role
|
||||||
@@ -415,9 +409,11 @@ CREATE TABLE `task` (
|
|||||||
`taskStatus` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '任务状态:running 执行中;deny 拒绝;end 结束',
|
`taskStatus` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '0' COMMENT '任务状态:running 执行中;deny 拒绝;end 结束',
|
||||||
`taskFormInput` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '表单',
|
`taskFormInput` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '表单',
|
||||||
`taskConfigId` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '当前执行中节点ID',
|
`taskConfigId` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '当前执行中节点ID',
|
||||||
|
`taskLineTypeList` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '允许的操作(英文逗号分隔)',
|
||||||
`taskNextConfigList` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '执行线路id list: 逗号分隔',
|
`taskNextConfigList` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '执行线路id list: 逗号分隔',
|
||||||
`taskInitUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '申请人',
|
`taskInitUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '申请人',
|
||||||
`taskEditUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '当前执行的处理人员,用逗号分隔',
|
`taskEditUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '当前执行的处理人员,用逗号分隔',
|
||||||
|
`taskEditedUserList` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '当前已经执行过的处理人员,用逗号分隔',
|
||||||
`taskViewUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所有相关人员,用逗号分隔',
|
`taskViewUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所有相关人员,用逗号分隔',
|
||||||
`workflowConfig` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT 'work flow流程JSON',
|
`workflowConfig` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT 'work flow流程JSON',
|
||||||
`createByUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '任务创建人',
|
`createByUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '任务创建人',
|
||||||
@@ -431,7 +427,8 @@ CREATE TABLE `task` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of task
|
-- Records of task
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `task` VALUES (4, '1000', '花花请假条', 'end', '{\"input\":{},\"formList\":[]}', 'end-72e945407d48', '[]', 'admin', 'admin', 'admin', '{\"nodeList\":[{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\",\"origin\":{\"id\":\"start-c31f75a55c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":40,\"properties\":{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},\"text\":{\"x\":280,\"y\":40,\"value\":\"起点\"}}},{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\",\"origin\":{\"id\":\"end-72e945407d48\",\"type\":\"CustomNode\",\"x\":280,\"y\":340,\"properties\":{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},\"text\":{\"x\":280,\"y\":340,\"value\":\"终点\"}}},{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-6d9a42ce8c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":140,\"properties\":{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":140,\"value\":\"财务审批\"}}},{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-0b094dff2548\",\"type\":\"CustomNode\",\"x\":280,\"y\":240,\"properties\":{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":240,\"value\":\"总经理审批\"}}}],\"lineList\":[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-4c665f934e48\",\"type\":\"polyline\",\"sourceNodeId\":\"start-c31f75a55c48\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":280,\"y\":60},\"endPoint\":{\"x\":280,\"y\":120},\"properties\":{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},\"text\":{\"x\":280,\"y\":75,\"value\":\"同意-开始\"},\"pointsList\":[{\"x\":280,\"y\":60},{\"x\":280,\"y\":120}]}},{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\",\"origin\":{\"id\":\"line-adda218f7948\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"end-72e945407d48\",\"startPoint\":{\"x\":280,\"y\":260},\"endPoint\":{\"x\":280,\"y\":320},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\"},\"text\":{\"x\":280,\"y\":280,\"value\":\"同意-总经理同意\"},\"pointsList\":[{\"x\":280,\"y\":260},{\"x\":280,\"y\":320}]}},{\"from\":\"userTask-6d9a42ce8c48\",\"to\":\"end-72e945407d48\",\"label\":\"财务拒绝\",\"type\":\"拒绝\",\"id\":\"line-d3afac990648\",\"Remark\":\"法大师傅大师傅4545梵蒂冈\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeRejectLine\\\"}\",\"origin\":{\"id\":\"line-d3afac990648\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-6d9a42ce8c48\",\"targetNodeId\":\"end-72e945407d48\",\"startPoint\":Line truncated
|
INSERT INTO task (taskId,taskTitle,taskStatus,taskFormInput,taskConfigId,taskNextConfigList,taskInitUser,taskEditUserList,taskViewUserList,workflowConfig,createByUser,operation,operationByUserId,operationByUser,operationAt,taskLineTypeList,taskEditedUserList) VALUES
|
||||||
|
('1000','花花请假条','end','{"input":{},"formList":[]}','end-72e945407d48','[]','admin','admin','admin','{"nodeList":[{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意","origin":{"id":"start-c31f75a55c48","type":"CustomNode","x":280,"y":40,"properties":{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意"},"text":{"x":280,"y":40,"value":"起点"}}},{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":"","origin":{"id":"end-72e945407d48","type":"CustomNode","x":280,"y":340,"properties":{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":""},"text":{"x":280,"y":340,"value":"终点"}}},{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-6d9a42ce8c48","type":"CustomNode","x":280,"y":140,"properties":{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":140,"value":"财务审批"}}},{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-0b094dff2548","type":"CustomNode","x":280,"y":240,"properties":{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":240,"value":"总经理审批"}}}],"lineList":[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot","origin":{"id":"line-4c665f934e48","type":"polyline","sourceNodeId":"start-c31f75a55c48","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":280,"y":60},"endPoint":{"x":280,"y":120},"properties":{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":75,"value":"同意-开始"},"pointsList":[{"x":280,"y":60},{"x":280,"y":120}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoint":{"x":280,"y":320},"properties":{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}"},"text":{"x":280,"y":280,"value":"同意-总经理同意"},"pointsList":[{"x":280,"y":260},{"x":280,"y":320}]}},{"from":"userTask-6d9a42ce8c48","to":"end-72e945407d48","label":"财务拒绝","type":"拒绝","id":"line-d3afac990648","Remark":"法大师傅大师傅4545梵蒂冈","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeRejectLine\\"}","origin":{"id":"line-d3afac990648","type":"polyline","sourceNodeId":"userTask-6d9a42ce8c48","targetNodeId":"end-72e945407d48","startPoint":{"x":330,"y":140},"endPoint":{"x":330,"y":340},"properties":{"from":"userTask-6d9a42ce8c48","to":"end-72e945407d48","label":"财务拒绝","type":"拒绝","id":"line-d3afac990648","Remark":"法大师傅大师傅4545梵蒂冈","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeRejectLine\\"}"},"text":{"x":431.2272727272725,"y":240,"value":"拒绝-财务拒绝"},"pointsList":[{"x":330,"y":140},{"x":431.2272727272725,"y":140},{"x":431.2272727272725,"y":340},{"x":330,"y":340}]}},{"from":"userTask-6d9a42ce8c48","to":"userTask-0b094dff2548","label":"财务同意","type":"同意","id":"line-49b4e2d1b548","Remark":"","endpoint":"Dot","origin":{"id":"line-49b4e2d1b548","type":"polyline","sourceNodeId":"userTask-6d9a42ce8c48","tarLine truncated
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for task_history
|
-- Table structure for task_history
|
||||||
@@ -445,6 +442,7 @@ CREATE TABLE `task_history` (
|
|||||||
`taskFormInput` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '表单',
|
`taskFormInput` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '表单',
|
||||||
`taskConfigId` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '当前执行中节点ID',
|
`taskConfigId` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '当前执行中节点ID',
|
||||||
`taskNextConfigList` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '执行线路id list: 逗号分隔',
|
`taskNextConfigList` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '执行线路id list: 逗号分隔',
|
||||||
|
`taskLineTypeList` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '允许的操作(英文逗号分隔)',
|
||||||
`taskInitUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '申请人',
|
`taskInitUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '申请人',
|
||||||
`taskEditUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '当前执行的处理人员,用逗号分隔',
|
`taskEditUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '当前执行的处理人员,用逗号分隔',
|
||||||
`taskViewUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所有相关人员,用逗号分隔',
|
`taskViewUserList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所有相关人员,用逗号分隔',
|
||||||
@@ -467,10 +465,12 @@ CREATE TABLE `task_history` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of task_history
|
-- Records of task_history
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `task_history` VALUES (1, '1000', '花花请假条', 'running', '{\"input\":{},\"formList\":[]}', 'start-c31f75a55c48', '[{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-4c665f934e48\",\"type\":\"polyline\",\"sourceNodeId\":\"start-c31f75a55c48\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":280,\"y\":60},\"endPoint\":{\"x\":280,\"y\":120},\"properties\":{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},\"text\":{\"x\":280,\"y\":75,\"value\":\"同意-开始\"},\"pointsList\":[{\"x\":280,\"y\":60},{\"x\":280,\"y\":120}]}}]', 'admin', '', 'admin', '', '{\"nodeList\":[{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\",\"origin\":{\"id\":\"start-c31f75a55c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":40,\"properties\":{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},\"text\":{\"x\":280,\"y\":40,\"value\":\"起点\"}}},{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\",\"origin\":{\"id\":\"end-72e945407d48\",\"type\":\"CustomNode\",\"x\":280,\"y\":340,\"properties\":{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},\"text\":{\"x\":280,\"y\":340,\"value\":\"终点\"}}},{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-6d9a42ce8c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":140,\"properties\":{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":140,\"value\":\"财务审批\"}}},{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-0b094dff2548\",\"type\":\"CustomNode\",\"x\":280,\"y\":240,\"properties\":{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":240,\"value\":\"总经理审批\"}}}],\"lineList\":[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-4c665f934e48\",\"type\":\"polyline\",\"sourceNodeId\":\"start-c31f75a55c48\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":280,\"y\":60},\"endPoint\":{\"x\":280,\"y\":120},\"properties\":{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},\"text\":{\"x\":280,\"y\":75,\"value\":\"同意-开始\"},\"pointsList\":[{\"x\":280,\"y\":60},{\"x\":280,\"y\":120}]}},{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\",\"origin\":{\"id\":\"line-adda218f7948\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"end-72e945407d48\",\"startPoint\":{\"x\":280,\"y\":260},\"endPoint\":{\"x\":280,\"y\":320},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"enLine truncated
|
|
||||||
INSERT INTO `task_history` VALUES (2, '1000', '花花请假条', 'running', '{\"input\":{},\"formList\":[]}', 'userTask-6d9a42ce8c48', '[{\"from\":\"userTask-6d9a42ce8c48\",\"to\":\"end-72e945407d48\",\"label\":\"财务拒绝\",\"type\":\"拒绝\",\"id\":\"line-d3afac990648\",\"Remark\":\"法大师傅大师傅4545梵蒂冈\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeRejectLine\\\"}\",\"origin\":{\"id\":\"line-d3afac990648\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-6d9a42ce8c48\",\"targetNodeId\":\"end-72e945407d48\",\"startPoint\":{\"x\":330,\"y\":140},\"endPoint\":{\"x\":330,\"y\":340},\"properties\":{\"from\":\"userTask-6d9a42ce8c48\",\"to\":\"end-72e945407d48\",\"label\":\"财务拒绝\",\"type\":\"拒绝\",\"id\":\"line-d3afac990648\",\"Remark\":\"法大师傅大师傅4545梵蒂冈\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeRejectLine\\\"}\"},\"text\":{\"x\":431.2272727272725,\"y\":240,\"value\":\"拒绝-财务拒绝\"},\"pointsList\":[{\"x\":330,\"y\":140},{\"x\":431.2272727272725,\"y\":140},{\"x\":431.2272727272725,\"y\":340},{\"x\":330,\"y\":340}]}},{\"from\":\"userTask-6d9a42ce8c48\",\"to\":\"userTask-0b094dff2548\",\"label\":\"财务同意\",\"type\":\"同意\",\"id\":\"line-49b4e2d1b548\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-49b4e2d1b548\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-6d9a42ce8c48\",\"targetNodeId\":\"userTask-0b094dff2548\",\"startPoint\":{\"x\":280,\"y\":160},\"endPoint\":{\"x\":280,\"y\":220},\"properties\":{\"from\":\"userTask-6d9a42ce8c48\",\"to\":\"userTask-0b094dff2548\",\"label\":\"财务同意\",\"type\":\"同意\",\"id\":\"line-49b4e2d1b548\",\"Remark\":\"\",\"endpoint\":\"Dot\"},\"text\":{\"x\":280,\"y\":190,\"value\":\"同意-财务同意\"},\"pointsList\":[{\"x\":280,\"y\":160},{\"x\":280,\"y\":220}]}}]', 'admin', 'admin', 'admin', NULL, '{\"nodeList\":[{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\",\"origin\":{\"id\":\"start-c31f75a55c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":40,\"properties\":{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},\"text\":{\"x\":280,\"y\":40,\"value\":\"起点\"}}},{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\",\"origin\":{\"id\":\"end-72e945407d48\",\"type\":\"CustomNode\",\"x\":280,\"y\":340,\"properties\":{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},\"text\":{\"x\":280,\"y\":340,\"value\":\"终点\"}}},{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-6d9a42ce8c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":140,\"properties\":{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":140,\"value\":\"财务审批\"}}},{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-0b094dff2548\",\"type\":\"CustomNode\",\"x\":280,\"y\":240,\"properties\":{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":240,\"value\":\"总经理审批\"}}}],\"lineList\":[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-4c665f934e48\",\"type\":\"polyline\",\"sourceNodeId\":\"start-c31f75a5Line truncated
|
INSERT INTO task_history (taskId,taskTitle,taskStatus,taskFormInput,taskConfigId,taskNextConfigList,taskInitUser,taskEditUserList,taskViewUserList,taskComment,workflowConfig,createByUser,taskExplain,taskHandleDesc,taskLineFrom,taskLineTo,taskLineLabel,taskCostDuration,operation,operationByUser,operationByUserId,operationAt,taskLineTypeList) VALUES
|
||||||
INSERT INTO `task_history` VALUES (3, '1000', '花花请假条', 'running', '{\"input\":{},\"formList\":[]}', 'userTask-0b094dff2548', '[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\",\"origin\":{\"id\":\"line-adda218f7948\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"end-72e945407d48\",\"startPoint\":{\"x\":280,\"y\":260},\"endPoint\":{\"x\":280,\"y\":320},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\"},\"text\":{\"x\":280,\"y\":280,\"value\":\"同意-总经理同意\"},\"pointsList\":[{\"x\":280,\"y\":260},{\"x\":280,\"y\":320}]}}]', 'admin', 'admin', 'admin', NULL, '{\"nodeList\":[{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\",\"origin\":{\"id\":\"start-c31f75a55c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":40,\"properties\":{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},\"text\":{\"x\":280,\"y\":40,\"value\":\"起点\"}}},{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\",\"origin\":{\"id\":\"end-72e945407d48\",\"type\":\"CustomNode\",\"x\":280,\"y\":340,\"properties\":{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},\"text\":{\"x\":280,\"y\":340,\"value\":\"终点\"}}},{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-6d9a42ce8c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":140,\"properties\":{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":140,\"value\":\"财务审批\"}}},{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-0b094dff2548\",\"type\":\"CustomNode\",\"x\":280,\"y\":240,\"properties\":{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":240,\"value\":\"总经理审批\"}}}],\"lineList\":[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-4c665f934e48\",\"type\":\"polyline\",\"sourceNodeId\":\"start-c31f75a55c48\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\"Line truncated
|
('1000','花花请假条','running','{"input":{},"formList":[]}','start-c31f75a55c48','[{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot","origin":{"id":"line-4c665f934e48","type":"polyline","sourceNodeId":"start-c31f75a55c48","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":280,"y":60},"endPoint":{"x":280,"y":120},"properties":{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":75,"value":"同意-开始"},"pointsList":[{"x":280,"y":60},{"x":280,"y":120}]}}]','admin','','admin','','{"nodeList":[{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意","origin":{"id":"start-c31f75a55c48","type":"CustomNode","x":280,"y":40,"properties":{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意"},"text":{"x":280,"y":40,"value":"起点"}}},{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":"","origin":{"id":"end-72e945407d48","type":"CustomNode","x":280,"y":340,"properties":{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":""},"text":{"x":280,"y":340,"value":"终点"}}},{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-6d9a42ce8c48","type":"CustomNode","x":280,"y":140,"properties":{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":140,"value":"财务审批"}}},{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-0b094dff2548","type":"CustomNode","x":280,"y":240,"properties":{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":240,"value":"总经理审批"}}}],"lineList":[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot","origin":{"id":"line-4c665f934e48","type":"polyline","sourceNodeId":"start-c31f75a55c48","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":280,"y":60},"endPoint":{"x":280,"y":120},"properties":{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":75,"value":"同意-开始"},"pointsList":[{"x":280,"y":60},{"x":280,"y":120}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoint":{"x":280,"y":320},"properties":{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}"},"text":{"x":280,"y":280,"value":"同意-总经理同意"},"pointsList":[{"x":280,"y":260},{"x":280,"y":320}]}},{"from":"userTask-6d9a42ce8c48","to":"end-72e945407d48","label":"财务拒绝","type":"拒绝","id":"line-d3afac990648","Remark":"法大师傅大师傅4545梵蒂冈","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeRejectLine\\"}","origin":{"id":"line-d3afac990648","type":"polyline","sourceNodeId":"userTask-6d9a42ce8c48","targetNodeId":"end-72e945407d48","startPoint":{"x":330,"y":140},"endPoint":{"x":330,"y":340},"properties":{"from":"userTask-6d9a42ce8c48","to":"end-72e945407d48","label":"财务拒绝","type":"拒绝","id":"line-d3afLine truncated
|
||||||
INSERT INTO `task_history` VALUES (4, '1000', '花花请假条', 'running', '{\"input\":{},\"formList\":[]}', 'end-72e945407d48', '[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\",\"origin\":{\"id\":\"line-adda218f7948\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"end-72e945407d48\",\"startPoint\":{\"x\":280,\"y\":260},\"endPoint\":{\"x\":280,\"y\":320},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"end-72e945407d48\",\"label\":\"总经理同意\",\"type\":\"同意\",\"id\":\"line-adda218f7948\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"{\\\"service\\\": \\\"hook\\\", \\\"serviceFunction\\\":\\\"executeFinishLine\\\"}\"},\"text\":{\"x\":280,\"y\":280,\"value\":\"同意-总经理同意\"},\"pointsList\":[{\"x\":280,\"y\":260},{\"x\":280,\"y\":320}]}}]', 'admin', 'admin', 'admin', NULL, '{\"nodeList\":[{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\",\"origin\":{\"id\":\"start-c31f75a55c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":40,\"properties\":{\"id\":\"start-c31f75a55c48\",\"label\":\"起点\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},\"text\":{\"x\":280,\"y\":40,\"value\":\"起点\"}}},{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\",\"origin\":{\"id\":\"end-72e945407d48\",\"type\":\"CustomNode\",\"x\":280,\"y\":340,\"properties\":{\"id\":\"end-72e945407d48\",\"label\":\"终点\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},\"text\":{\"x\":280,\"y\":340,\"value\":\"终点\"}}},{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-6d9a42ce8c48\",\"type\":\"CustomNode\",\"x\":280,\"y\":140,\"properties\":{\"id\":\"userTask-6d9a42ce8c48\",\"label\":\"财务审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":140,\"value\":\"财务审批\"}}},{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"origin\":{\"id\":\"userTask-0b094dff2548\",\"type\":\"CustomNode\",\"x\":280,\"y\":240,\"properties\":{\"id\":\"userTask-0b094dff2548\",\"label\":\"总经理审批\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},\"text\":{\"x\":280,\"y\":240,\"value\":\"总经理审批\"}}}],\"lineList\":[{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\",\"origin\":{\"id\":\"line-b08110243248\",\"type\":\"polyline\",\"sourceNodeId\":\"userTask-0b094dff2548\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"x\":230,\"y\":240},\"endPoint\":{\"x\":230,\"y\":140},\"properties\":{\"from\":\"userTask-0b094dff2548\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"总经理拒绝\",\"type\":\"拒绝\",\"id\":\"line-b08110243248\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"hook\":\"\"},\"text\":{\"x\":137,\"y\":190,\"value\":\"拒绝-总经理拒绝\"},\"pointsList\":[{\"x\":230,\"y\":240},{\"x\":137,\"y\":240},{\"x\":137,\"y\":140},{\"x\":230,\"y\":140}]}},{\"from\":\"start-c31f75a55c48\",\"to\":\"userTask-6d9a42ce8c48\",\"label\":\"开始\",\"type\":\"同意\",\"id\":\"line-4c665f934e48\",\"Remark\":\"\",\"endpoint\":\"Dot\",\"origin\":{\"id\":\"line-4c665f934e48\",\"type\":\"polyline\",\"sourceNodeId\":\"start-c31f75a55c48\",\"targetNodeId\":\"userTask-6d9a42ce8c48\",\"startPoint\":{\"xLine truncated
|
('1000','花花请假条','running','{"input":{},"formList":[]}','userTask-6d9a42ce8c48','[{"from":"userTask-6d9a42ce8c48","to":"end-72e945407d48","label":"财务拒绝","type":"拒绝","id":"line-d3afac990648","Remark":"法大师傅大师傅4545梵蒂冈","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeRejectLine\\"}","origin":{"id":"line-d3afac990648","type":"polyline","sourceNodeId":"userTask-6d9a42ce8c48","targetNodeId":"end-72e945407d48","startPoint":{"x":330,"y":140},"endPoint":{"x":330,"y":340},"properties":{"from":"userTask-6d9a42ce8c48","to":"end-72e945407d48","label":"财务拒绝","type":"拒绝","id":"line-d3afac990648","Remark":"法大师傅大师傅4545梵蒂冈","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeRejectLine\\"}"},"text":{"x":431.2272727272725,"y":240,"value":"拒绝-财务拒绝"},"pointsList":[{"x":330,"y":140},{"x":431.2272727272725,"y":140},{"x":431.2272727272725,"y":340},{"x":330,"y":340}]}},{"from":"userTask-6d9a42ce8c48","to":"userTask-0b094dff2548","label":"财务同意","type":"同意","id":"line-49b4e2d1b548","Remark":"","endpoint":"Dot","origin":{"id":"line-49b4e2d1b548","type":"polyline","sourceNodeId":"userTask-6d9a42ce8c48","targetNodeId":"userTask-0b094dff2548","startPoint":{"x":280,"y":160},"endPoint":{"x":280,"y":220},"properties":{"from":"userTask-6d9a42ce8c48","to":"userTask-0b094dff2548","label":"财务同意","type":"同意","id":"line-49b4e2d1b548","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":190,"value":"同意-财务同意"},"pointsList":[{"x":280,"y":160},{"x":280,"y":220}]}}]','admin','admin','admin',NULL,'{"nodeList":[{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意","origin":{"id":"start-c31f75a55c48","type":"CustomNode","x":280,"y":40,"properties":{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意"},"text":{"x":280,"y":40,"value":"起点"}}},{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":"","origin":{"id":"end-72e945407d48","type":"CustomNode","x":280,"y":340,"properties":{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":""},"text":{"x":280,"y":340,"value":"终点"}}},{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-6d9a42ce8c48","type":"CustomNode","x":280,"y":140,"properties":{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":140,"value":"财务审批"}}},{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-0b094dff2548","type":"CustomNode","x":280,"y":240,"properties":{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":240,"value":"总经理审批"}}}],"lineList":[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot","origin":{"id":"line-4c665f934e48","type":"polyline","sourceNodeId":"start-c31f75a55c48","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":280,"y":60},"endPoint":{"x":280,"y":120},"properties":{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":75,"value":"同意-开始"},"pointsList":[{"x":280,"y":60},{"x":280,"y":120}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoLine truncated
|
||||||
|
('1000','花花请假条','running','{"input":{},"formList":[]}','userTask-0b094dff2548','[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoint":{"x":280,"y":320},"properties":{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}"},"text":{"x":280,"y":280,"value":"同意-总经理同意"},"pointsList":[{"x":280,"y":260},{"x":280,"y":320}]}}]','admin','admin','admin',NULL,'{"nodeList":[{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意","origin":{"id":"start-c31f75a55c48","type":"CustomNode","x":280,"y":40,"properties":{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意"},"text":{"x":280,"y":40,"value":"起点"}}},{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":"","origin":{"id":"end-72e945407d48","type":"CustomNode","x":280,"y":340,"properties":{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":""},"text":{"x":280,"y":340,"value":"终点"}}},{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-6d9a42ce8c48","type":"CustomNode","x":280,"y":140,"properties":{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":140,"value":"财务审批"}}},{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-0b094dff2548","type":"CustomNode","x":280,"y":240,"properties":{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":240,"value":"总经理审批"}}}],"lineList":[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot","origin":{"id":"line-4c665f934e48","type":"polyline","sourceNodeId":"start-c31f75a55c48","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":280,"y":60},"endPoint":{"x":280,"y":120},"properties":{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":75,"value":"同意-开始"},"pointsList":[{"x":280,"y":60},{"x":280,"y":120}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoint":{"x":280,"y":320},"properties":{"from":"userTask-0b094dff2548","to"Line truncated
|
||||||
|
('1000','花花请假条','running','{"input":{},"formList":[]}','end-72e945407d48','[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoint":{"x":280,"y":320},"properties":{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}"},"text":{"x":280,"y":280,"value":"同意-总经理同意"},"pointsList":[{"x":280,"y":260},{"x":280,"y":320}]}}]','admin','admin','admin',NULL,'{"nodeList":[{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意","origin":{"id":"start-c31f75a55c48","type":"CustomNode","x":280,"y":40,"properties":{"id":"start-c31f75a55c48","label":"起点","type":"start","assignType":"person","assignValue":["admin"],"lineTypeList":"同意"},"text":{"x":280,"y":40,"value":"起点"}}},{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":"","origin":{"id":"end-72e945407d48","type":"CustomNode","x":280,"y":340,"properties":{"id":"end-72e945407d48","label":"终点","type":"end","assignType":"person","assignValue":["admin"],"lineTypeList":""},"text":{"x":280,"y":340,"value":"终点"}}},{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-6d9a42ce8c48","type":"CustomNode","x":280,"y":140,"properties":{"id":"userTask-6d9a42ce8c48","label":"财务审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":140,"value":"财务审批"}}},{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝","origin":{"id":"userTask-0b094dff2548","type":"CustomNode","x":280,"y":240,"properties":{"id":"userTask-0b094dff2548","label":"总经理审批","type":"userTask","assignType":"person","assignValue":["admin"],"lineTypeList":"同意,拒绝"},"text":{"x":280,"y":240,"value":"总经理审批"}}}],"lineList":[{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":"","origin":{"id":"line-b08110243248","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":230,"y":240},"endPoint":{"x":230,"y":140},"properties":{"from":"userTask-0b094dff2548","to":"userTask-6d9a42ce8c48","label":"总经理拒绝","type":"拒绝","id":"line-b08110243248","Remark":"","endpoint":"Dot","hook":""},"text":{"x":137,"y":190,"value":"拒绝-总经理拒绝"},"pointsList":[{"x":230,"y":240},{"x":137,"y":240},{"x":137,"y":140},{"x":230,"y":140}]}},{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot","origin":{"id":"line-4c665f934e48","type":"polyline","sourceNodeId":"start-c31f75a55c48","targetNodeId":"userTask-6d9a42ce8c48","startPoint":{"x":280,"y":60},"endPoint":{"x":280,"y":120},"properties":{"from":"start-c31f75a55c48","to":"userTask-6d9a42ce8c48","label":"开始","type":"同意","id":"line-4c665f934e48","Remark":"","endpoint":"Dot"},"text":{"x":280,"y":75,"value":"同意-开始"},"pointsList":[{"x":280,"y":60},{"x":280,"y":120}]}},{"from":"userTask-0b094dff2548","to":"end-72e945407d48","label":"总经理同意","type":"同意","id":"line-adda218f7948","Remark":"","endpoint":"Dot","hook":"{\\"service\\": \\"hook\\", \\"serviceFunction\\":\\"executeFinishLine\\"}","origin":{"id":"line-adda218f7948","type":"polyline","sourceNodeId":"userTask-0b094dff2548","targetNodeId":"end-72e945407d48","startPoint":{"x":280,"y":260},"endPoint":{"x":280,"y":320},"properties":{"from":"userTask-0b094dff2548","to":"endLine truncated
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for workflow
|
-- Table structure for workflow
|
||||||
|
|||||||
Reference in new issue
Block a user