-- save taskInstance record
-- mysql
insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `tenant_id`, `status`) values ( 'menu.taskInstance', '0', '/system/taskInstance', 'taskInstance', '0' , '0', '1' , '1');

insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Query 实际任务主表', '', '1', 'system:taskInstance:list', '0', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Create 实际任务主表', '', '1', 'system:taskInstance:save', '1', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Update 实际任务主表', '', '1', 'system:taskInstance:update', '2', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Delete 实际任务主表', '', '1', 'system:taskInstance:remove', '3', '1', '1');

-- locale menu name
taskInstance: 'TaskInstance',

-- locale field
taskInstance: {
    taskNo: "taskNo",
    bizNo: "bizNo",
    bizType: "bizType",
    templateId: "templateId",
    templateCode: "templateCode",
    templateVersion: "templateVersion",
    sourceInfo: "sourceInfo",
    targetInfo: "targetInfo",
    sourceCode: "sourceCode",
    targetCode: "targetCode",
    plannedPath: "plannedPath",
    actualPath: "actualPath",
    priority: "priority",
    timeoutAt: "timeoutAt",
    currentNodeCode: "currentNodeCode",
    currentNodeName: "currentNodeName",
    totalNodes: "totalNodes",
    completedNodes: "completedNodes",
    progressRate: "progressRate",
    estimatedDurationMinutes: "estimatedDurationMinutes",
    actualDurationMinutes: "actualDurationMinutes",
    startTime: "startTime",
    endTime: "endTime",
    resultCode: "resultCode",
    resultMessage: "resultMessage",
    resultData: "resultData",
    retryTimes: "retryTimes",
    lastRetryTime: "lastRetryTime",
    extParams: "extParams",
    remark: "remark",
},

-- ResourceContent
import taskInstance from './taskInstance';

case 'taskInstance':
    return taskInstance;
