华为云用户手册

  • 请求参数 参数 类型 是否必填 描述 submitterAccount String 是 提交人。 sceneTaskId Long 是 任务ID。 processFeedback String 否 反馈进展。 completeTimestamp String 否 完成时间。 saveDraft String 是 保存/提交。 1:保存 2:提交 taskExtendField Object 否 父任务扩展属性。 没有扩展属性时填写空对象 subTaskList List 否 子任务信息。 subTaskList字段说明: 参数 类型 描述 sceneTaskId Long 子任务ID。 processFeedback String 子任务进展反馈信息。 completeTimestamp String 子任务实际完成时间。 taskExtendField Object 子任务扩展信息。 taskExtendField字段说明: 参数 类型 描述 sceneTaskId Long 任务/子任务id。 stage Integer 子任务扩展属性所属阶段。 1:创建 2:执行 parentTaskId Long 父任务id。 udf1-udf40 String 扩展属性信息(扩展属性信息是从对应的场景中获取的)。 taskType Integer 任务类型。 1:父任务 2:子任务
  • 请求示例 { "submitterAccount": "fc0001", "sceneTaskId": 5064801, "processFeedback": "", "completeTimestamp": "", "saveDraft": "0", "taskExtendField": {}, "subTaskList": [ { "sceneTaskId": 5010371, "processFeedback": "123", "completeTimestamp": "", "taskExtendField": { "sceneTaskId": 5010371, "taskType": 2, "parentTaskId": 5064801, "stage": 2, "udf12": 11, "udf13": 22 } } ]}
  • 响应示例 {"stateCode": "0","errorMessage": null,"result": [{"sceneTaskId": 5010379,"taskId": 5064810,"taskName": "子任务1_20230204_164453","status": 1,"createdBy": 1823,"createName": "张三","currentProcedureId": null,"currentProcedureName": null,"pocedureOrNot": 0,"checkOrderId": null,"checkOrderName": null,"checkOrderType": null,"description": "","actualEndTime": null,"actualBeginTime": null,"beginTimestamp": null,"endTimestamp": null,"processFeedback": null,"isNa": 0,"signSiteId": null,"signSiteCode": "","signSiteName": "","regionId": null,"regionPath": null,"regionName": null,"isExecute": 1,"priority": "","jobDuration": null,"projectDuration": null,"administrativeDivision": "","administrativeDivisionName": "","skill": "","address": "","requiredStartTime": null,"requiredEndTime": null,"taskExtend": [{"extendName": "子任务单枚2","stage": 1,"fieldOrder": 3,"extendValue": "123","udfName": "UDF7","extendType": 2,"isNecessary": 2},{"extendName": "子任务多枚2","stage": 1,"fieldOrder": 4,"extendValue": "多1;多2","udfName": "UDF8","extendType": 3,"isNecessary": 2},{"extendName": "短文本1","stage": 1,"fieldOrder": 6,"extendValue": "默认值","udfName": "UDF1","extendType": 20,"isNecessary": 2}],"procedureList": [{"isAppraisal": null,"collectionReviewName": null,"licenseSwitch": 0,"operationGuideList": [],"description": "","templateCode": null,"templateId": null,"version": null,"templateName": null,"licenseTag": 0,"taskName": "简单工序","collectionReviewId": null,"procedureOrder": 1},{"isAppraisal": 1,"collectionReviewName": "测试审批流123","licenseSwitch": 0,"operationGuideList": [],"description": "","templateCode": "QC2022XXXXXXXXXXXXX","templateId": 268612896,"version": "1.0","templateName": "测试openApi导入模板1","licenseTag": 0,"taskName": "工序带采集审批","collectionReviewId": 100417,"procedureOrder": 2}]}]}
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "data": [ { "sceneTaskId": 10009, "taskType": 2, "fileId": 512705, "fileName": "20210123生产上线脚本 - 副本.txt", "fileType": "txt", "createdBy": 25804, "createName": "张三" } ], "pos": 0, "total_count": 1, "entityName": null }}
  • 相关接口 接口名称 调用说明 获取Token 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 查询父任务 调用该接口获取到父任务ID。 查询任务操作指导、附件列表时,如果查询父任务的操作指导、附件列表,需要输入父任务ID。 查询子任务 调用该接口获取到子任务ID。 查询任务操作指导、附件列表时,如果查询子任务的操作指导、附件列表,需要输入子任务ID。 查询工序 调用该接口获取到工序ID。 查询任务操作指导、附件列表时,如果查询工序的操作指导、附件列表,需要输入工序ID。
  • 请求示例 { "actualBeginTime": null, "actualEndTime": null, "address": null, "adminOrganization": "25245", "adminOrganizationName": "信息展示子系统SIT测试租户", "administrativeDivision": null, "administrativeDivisionName": null, "assignedUserId": "864221", "assignedUserName": "15319700143", "attachmentList": [], "beginTimestamp": null, "category": null, "categoryId": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "checkOrderId": null, "checkOrderName": null, "collectionProcessType": null, "collectionReviewId": null, "collectionReviewName": null, "commandSwitch": "N", "createName": "153xxxx0143", "createdBy": 864221, "creationDate": "2023-02-08T09:19:50.000+00:00", "creationTimestamp": 1675847990937, "customerId": null, "customerName": null, "endTimestamp": null, "isApplyApprove": 0, "isAppraisal": null, "jobDuration": null, "latitude": "", "longitude": "", "operUserId": 864221, "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentCategory": null, "parentCategoryId": null, "priority": null, "processType": null, "projectDuration": null, "projectName": null, "projectNo": null, "regionId": null, "regionName": null, "regionPath": null, "regionPathName": null, "requiredEndTime": null, "requiredStartTime": null, "reviewRuleId": null, "reviewRuleName": "", "saveDraft": "0", "sceneCode": "TS20230206201933023", "sceneId": 127790, "sceneLicense": null, "sceneMode": 4, "sceneName": "父子任务有扩展属性", "sceneTaskId": 3233357, "sceneVersion": "1.0", "schedulingMode": null, "signInConfig": null, "signSiteCode": "新建作业对象编码", "signSiteId": 99054145, "signSiteName": "新建作业对象名称", "skill": null, "status": 0, "subTaskList": [ { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "864221", "assignedUserName": "15319700143", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 1, "oldTaskName": "子任务1", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3233357, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "225814", "sceneTaskId": 1959907, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [ { "extendName": "实际工作量", "extendType": 7, "extendValue": "1.00", "fieldOrder": 1, "isNecessary": 1, "maxValue": "2000.00", "minValue": "1.00", "precision": 2, "sceneTaskId": 1959907, "stage": 2, "udfName": "UDF1", "unitName": "公斤" }, { "extendName": "计划工作量", "extendType": 7, "extendValue": "1.00", "fieldOrder": 2, "isNecessary": 1, "maxValue": "2000.00", "minValue": "1.00", "precision": 2, "sceneTaskId": 1959907, "stage": 1, "udfName": "UDF2", "unitName": "公斤" } ], "taskName": "子任务1", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "864221", "assignedUserName": "15319700143", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 2, "oldTaskName": "子任务2", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3233357, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "225815", "sceneTaskId": 1959908, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [ { "extendName": "实际工作量", "extendType": 7, "extendValue": "1.00", "fieldOrder": 1, "isNecessary": 1, "maxValue": "2000.00", "minValue": "1.00", "precision": 2, "sceneTaskId": 1959908, "stage": 2, "udfName": "UDF1", "unitName": "公斤" }, { "extendName": "计划工作量", "extendType": 7, "extendValue": "1.00", "fieldOrder": 2, "isNecessary": 1, "maxValue": "2000.00", "minValue": "1.00", "precision": 2, "sceneTaskId": 1959908, "stage": 1, "udfName": "UDF2", "unitName": "公斤" } ], "taskName": "子任务2", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" } ], "supplierName": null, "taskExtend": [ { "extendName": "计划工作量", "extendType": 7, "extendValue": "10", "fieldOrder": 1, "isNecessary": 1, "maxValue": "12.000", "minValue": "2.000", "precision": 3, "sceneTaskId": 3233357, "stage": 1, "udfName": "UDF20", "unitName": "公斤" }, { "extendName": "实际工作量", "extendType": 6, "extendValue": "10", "fieldOrder": 2, "isNecessary": 2, "maxValue": "20", "minValue": "5", "precision": 0, "sceneTaskId": 3233357, "stage": 2, "udfName": "UDF1", "unitName": "公斤" } ], "taskMode": 4, "taskName": "新创建", "taskObjectType": "公路站", "taskRemark": null, "templateCode": null, "templateId": null, "templateName": null, "userGroup": "", "userGroupName": "", "version": null}
  • 请求参数 参数 类型 是否必填 描述 sceneTaskId Long 是 任务ID operUserId Long 否 操作人ID operUserNo String 否 操作人编码 customerTaskId Long 否 客户任务ID resource String 否 任务来源 taskName String 是 任务名称 sceneName String 是 任务场景名称 sceneId Long 是 任务场景ID sceneCode String 是 场景编码 sceneVersion String 是 场景版本 signSiteId Long 否 作业对象ID signSiteCode String 否 作业对象编码 signSiteName String 否 作业对象名称 projectNo String 否 项目编码 projectName String 否 项目名称 supplierName String 否 供应商 assignedUserType String 否 执行人类型 assignedUser String 否 执行人账号 assignedUserId String 否 执行人ID assignedUserName String 否 执行人名称 beginTimestamp Long 否 计划开始时间 endTimestamp Long 否 计划完成时间 requiredStartTime Long 否 要求开始时间 requiredEndTime Long 否 要求完成时间 projectDuration String 否 工期 jobDuration String 否 标准时长 adminOrganizationName String 是 管理组织单元名称 adminOrganization String 是 管理组织单元编码 administrativeDivision String 否 行政区域 administrativeDivisionName String 否 行政区 域名 称 说明: 支持输入多个值,多个值时用分号隔开。 regionName String 否 行政区域名称 regionId String 否 行政区域ID regionPath String 否 行政区域路径 skill String 否 技能 address String 否 详细地址 templateId Long 否 模板ID templateCode String 否 模板编码 templateName String 否 模板名称 version String 否 版本 reviewRuleId Long 否 任务申请审批流ID reviewRuleName String 否 任务申请审批流名称 taskRemark String 否 任务备注 isAppraisal String 否 任务是否需要审批 collectionReviewId Long 否 采集审批流ID collectionReviewName String 否 采集审批流名称 collectionProcessType String 否 采集审批流类型( priority String 否 优先级 schedulingMode String 否 调度模式 customerName String 否 客户名称 customerId String 否 客户ID operationGuideList List 否 操作指导 attachmentList List 否 附件 taskMode String 是 任务模式 saveDraft String 是 保持草稿、提交 taskExtend List 否 任务扩展属性 url String 否 待办地址 thirdUrl String 否 第三方待办地址 taskExtend扩展属性每个Object字段说明 参数 类型 是否必填 描述 extendName Long 是 任务扩展属性名称 extendType Long 是 扩展属性类型(1:长文本;2:枚举;3:多枚举;4:日期;5:时间;6:整数;7:小数;20:短文本) extendValue String 否 任务扩展属性值 fieldOrder Integeer 否 任务扩展属性顺序 isNecessary String 是 扩展属性是否必填(1:必填;2:不必填) sceneTaskId Long 是 任务id stage Integer 否 任务扩展属性阶段 1:创建阶段 2: 执行阶段 unitName String 否 单位名称 preTaskList子任务前后置关系每个Object字段说明: 参数 类型 是否必填 描述 isEnabledScenePre String 否 是否继承场景前后置关系 Y:从场景获取,不取接口参数 N :不从场景获取,只取接口入参为准;默认Y,从场景集成 preTaskName String 是 前置任务名称 preTaskLocation String 是 前置任务位置信息 taskPreName String 是 后置任务名称 taskPreLocation String 是 后置任务位置 preType String 是 前置后置关系 preTaskLocation参数说明: 参数 类型 是否必填 描述 x int 是 无现成子任务关系,则初始值赋 X=50 Y=50 后置子任务,则在当前子任务基础上赋值:X不变,Y增加250 兄弟子任务,则在当前子任务基础上赋值:X增加150,Y不变 y int 是 taskPreLocation参数说明: 参数 类型 是否必填 描述 x int 是 无现成子任务关系,则初始值赋 X=50 Y=50 后置子任务,则在当前子任务基础上赋值:X不变,Y增加250 兄弟子任务,则在当前子任务基础上赋值:X增加150,Y不变 y int 是
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": [ { "taskId": 3248221, "taskType": 1, "planBeginTimestamp": 1680552244000, "planEndTimestamp": 1682787661000 }, { "taskId": 1973411, "taskType": 2, "planBeginTimestamp": 1680552244000, "planEndTimestamp": 1681063322000 }, { "taskId": 1973412, "taskType": 2, "planBeginTimestamp": 1680552244000, "planEndTimestamp": 1681063322000 } ]}
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "data": [ { "taskScheduleId": 4611, "platJobId": 1041730, "taskScheduleName": "wwwwww333", "isEnable": 1, "createdBy": 390841, "createName": "zdrun-test", "lastUpdatedBy": 390841, "lastUpdateName": "zdrun-test", "creationDate": "2022-07-15 10:43:33", "lastUpdateDate": "2022-07-15 15:03:00", "creationTimestamp": 1657853013412, "lastUpdateTimestamp": 1657868580458, "deleteFlag": 0 } ], "pos": 0, "total_count": 1, "entityName": null, "totalCount": 1 }}
  • 请求示例 { "taskList": [ { "taskId": 3248221, "taskType": 1, "planBeginTimestamp": 1680552244000, "planEndTimestamp": 1682787661000 }, { "taskId": 1973411, "taskType": 2, "planBeginTimestamp": 1680552244000, "planEndTimestamp": 1681063322000 }, { "taskId": 1973412, "taskType": 2, "planBeginTimestamp": 1680552244000, "planEndTimestamp": 1681063322000 } ]}
  • 响应参数 参数 类型 描述 stateCode String 响应状态码:0-成功;其他-失败 errorMessage String 响应描述 result Object 响应结果内容data、分页数据 data出参: 参数 类型 描述 customerTaskId String 客户任务ID taskId Long 创建成功的任务id status Integer 返回状态:0-成功;1-失败 message String 返回的失败消息。
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": [ { "reviewRuleId": null, "subTaskOrNot": 1, "submitBy": 864711, "licenseSwitch": null, "lastUpdateDate": "2023-04-04 16:42:02", "submitDate": 1680597722422, "schedulerBy": -1, "deleteFlag": 0, "lastUpdateTimestamp": 1680597722422, "entityName": "SceneTask", "isApplyApprove": 0, "reviewRuleName": "", "creationTimestamp": 1680597722422, "schedulerName": "OpenApi", "sceneMode": 4, "lastUpdatedBy": 864711, "operationTimestamp": 1680597722422, "address": null, "appName": "isdp-task-server", "errorMessage": null, "creationDate": "2023-04-04 16:42:02", "customerTaskId": "QA2233", "submitName": "zhang_sit", "sceneTaskId": 3245536, "signInConfig": null, "createdBy": 864711, "schedulerTimestamp": 1680597722422, "affectedRows": 1, "procedureOrNot": 0, "tenantId": 886, "stateCode": "0", "lastUpdateName": "zhang_sit", "ticketId": 0, "createName": "zhang_sit", "schedulerDate": "2023-04-04 16:42:02", "status": 1 }, { "reviewRuleId": null, "subTaskOrNot": 1, "submitBy": 864711, "licenseSwitch": null, "lastUpdateDate": "2023-04-04 16:42:02", "submitDate": 1680597722408, "schedulerBy": -1, "deleteFlag": 0, "lastUpdateTimestamp": 1680597722408, "entityName": "SceneTask", "isApplyApprove": 0, "reviewRuleName": "", "creationTimestamp": 1680597722408, "schedulerName": "OpenApi", "sceneMode": 4, "lastUpdatedBy": 864711, "operationTimestamp": 1680597722408, "address": null, "appName": "isdp-task-server", "errorMessage": null, "creationDate": "2023-04-04 16:42:02", "customerTaskId": "QA2414", "submitName": "zhang_sit", "sceneTaskId": 3245534, "signInConfig": null, "createdBy": 864711, "schedulerTimestamp": 1680597722408, "affectedRows": 1, "procedureOrNot": 0, "tenantId": 886, "stateCode": "0", "lastUpdateName": "zhang_sit", "ticketId": 0, "createName": "zhang_sit", "schedulerDate": "2023-04-04 16:42:02", "status": 0 }, { "reviewRuleId": null, "subTaskOrNot": 1, "submitBy": 864711, "licenseSwitch": null, "lastUpdateDate": "2023-04-04 16:42:02", "submitDate": 1680597722422, "schedulerBy": -1, "deleteFlag": 0, "lastUpdateTimestamp": 1680597722422, "entityName": "SceneTask", "isApplyApprove": 0, "reviewRuleName": "", "creationTimestamp": 1680597722422, "schedulerName": "OpenApi", "sceneMode": 4, "lastUpdatedBy": 864711, "operationTimestamp": 1680597722422, "address": null, "appName": "isdp-task-server", "errorMessage": null, "creationDate": "2023-04-04 16:42:02", "customerTaskId": "20qe333", "submitName": "zhang_sit", "sceneTaskId": 3245535, "signInConfig": null, "createdBy": 864711, "schedulerTimestamp": 1680597722422, "affectedRows": 1, "procedureOrNot": 0, "tenantId": 886, "stateCode": "0", "lastUpdateName": "zhang_sit", "ticketId": 0, "createName": "zhang_sit", "schedulerDate": "2023-04-04 16:42:02", "status": 0 } ]}
  • 请求示例 { "taskQueries": [ { "supplierName": "", "taskRemark": "", "beginTimestamp": "", "collectionReviewName": "", "sceneName": "zhang子任务前后置关系_串行", "latitude": "", "signSiteName": "", "isCustomerTaskIdDuplicate": "Y", "customerTaskId": "QA2233", "projectNo": "", "assignedUserType": "1", "geoType": "", "reviewRuleName": "", "taskName": "openapi_批量创建zhang子任务前后置关系_串行02", "assignedUser": "Zhang123456", "endTimestamp": "", "saveDraft": 1, "taskExtendList": [], "longitude": "", "isEnabledScenePre": "Y", "preTaskList": [], "subTaskList": [ { "taskExtendList": [], "signSiteName": "", "modeOrder": 1, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 2, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 3, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] } ] }, { "supplierName": "", "taskRemark": "", "beginTimestamp": "", "collectionReviewName": "", "sceneName": "zhang子任务无配置关系", "latitude": "", "signSiteName": "", "isCustomerTaskIdDuplicate": "Y", "customerTaskId": "QA2414", "projectNo": "", "assignedUserType": "1", "geoType": "", "reviewRuleName": "", "taskName": "openapi_批量创建zhang子任务无配置关系02", "assignedUser": "Zhang123456", "endTimestamp": "", "taskExtendList": [], "longitude": "", "saveDraft": 0, "isEnabledScenePre": "N", "preTaskList": [ { "preTaskName": "子任务11", "preTaskLocation": "{\"x\":700,\"y\":70}", "taskPreName": "子任务22", "taskPreLocation": "{\"x\":700,\"y\":190}", "preType": "FS" }, { "preTaskName": "子任务11", "preTaskLocation": "{\"x\":700,\"y\":70}", "taskPreName": "子任务33", "taskPreLocation": "{\"x\":700,\"y\":340}", "preType": "FS" } ], "subTaskList": [ { "taskExtendList": [], "signSiteName": "", "modeOrder": 1, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 2, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 3, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] } ] }, { "supplierName": "", "taskRemark": "", "beginTimestamp": "", "collectionReviewName": "", "sceneName": "zhang4个子任务_有一个无配置关系", "latitude": "", "signSiteName": "", "isCustomerTaskIdDuplicate": "Y", "customerTaskId": "20qe333", "projectNo": "", "assignedUserType": "1", "geoType": "", "reviewRuleName": "", "taskName": "openapi_批量创建zhang4个子任务_有一个无配置关系02", "assignedUser": "Zhang123456", "endTimestamp": "", "saveDraft": 0, "taskExtendList": [], "longitude": "", "isEnabledScenePre": "N", "preTaskList": [ { "preTaskName": "子任务11", "preTaskLocation": "{\"x\":700,\"y\":70}", "taskPreName": "子任务22", "taskPreLocation": "{\"x\":700,\"y\":190}", "preType": "FS" }, { "preTaskName": "子任务11", "preTaskLocation": "{\"x\":700,\"y\":70}", "taskPreName": "子任务33", "taskPreLocation": "{\"x\":700,\"y\":340}", "preType": "FS" }, { "preTaskName": "子任务44", "preTaskLocation": "{\"x\":700,\"y\":340}", "taskPreName": "子任务22", "taskPreLocation": "{\"x\":100,\"y\":70}", "preType": "FS" } ], "subTaskList": [ { "taskExtendList": [], "signSiteName": "", "modeOrder": 1, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 2, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 3, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 4, "projectNo": "", "assignedUserType": 1, "assignedUser": "Zhang123456", "ccPersonType": 4, "ccPerson": "", "ownerType": 5, "owner": "", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "longitude": "", "latitude": "", "geoType": "", "requiredEndTime": "", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [] } ] } ]}
  • 响应参数 参数 类型 描述 stateCode String 响应状态码:0-成功;其他-失败 errorMessage String 响应描述 result Object 响应结果内容data、分页数据 data出参: 参数 类型 描述 customerTaskId String 客户任务ID taskId Long 创建成功的任务id status Integer 返回状态:0-成功;1-失败 message String 返回的失败消息。
  • 请求示例 { "customerTaskId": 1667986035676, "taskName": "1667986035676lwc测试", "signSiteName": "bzh00201", "geoType": "BD", "longitude": "123.456", "latitude": "23.456", "creatorAccount": "17791717398", "sceneName": "测试openApi", "projectNo": "", "assignedUserType": 2, "assignedUser": "0326test", "ccPersonType": 6, "ccPerson": "", "ownerType": 7, "owner": "", "supplierName": "", "beginTimestamp": "1655913600000", "endTimestamp": "1655913600000", "requiredStartTime": "", "requiredEndTime": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "taskExtendList": [], "toolSet": [ { "toolNo": "T003", "toolName": "子任务2-工序1", "toolLocation": { "x": 100, "y": 200 } } ], "subTaskList": [ { "taskExtendList": [ { "fieldName": "", "extendValue": "" }, { "fieldName": "", "extendValue": "" } ], "signSiteName": "", "modeOrder": 1, "projectNo": "UI项目默认", "assignedUserType": 1, "assignedUser": "17791717398", "ccPersonType": 4, "ccPerson": "17791717398", "ownerType": 5, "owner": "17791717398", "supplierName": "", "reviewRuleName": "", "beginTimestamp": "1652803200000", "endTimestamp": "1653055200000", "requiredStartTime": "1653062400000", "longitude": "123.789", "latitude": "45.236", "geoType": "BD", "requiredEndTime": "1653926400000", "taskRemark": "测试任务备注", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "", "customerName": "", "procedureList": [], "toolSet": [ { "toolNo": "T003", "toolName": "子任务2-工序1", "toolLocation": { "x": 100, "y": 200 } } ] }, { "taskExtendList": [], "signSiteName": "", "modeOrder": 2, "projectNo": "UI项目默认", "assignedUserType": 1, "assignedUser": "17791717398", "ccPersonType": 6, "ccPerson": "0326test", "ownerType": 7, "owner": "0326test", "reviewRuleName": "QQ-dan", "beginTimestamp": "1652803200000", "endTimestamp": "1653055200000", "requiredStartTime": "1653062400000", "requiredEndTime": "1653926400000", "taskRemark": "", "collectionReviewName": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "", "address": "", "skill": "证", "customerName": "", "procedureList": [] } ]}
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "customerTaskId": "1667985914779", "subTaskOrNot": 1, "procedureOrNot": 0, "ticketId": 0, "tenantId": 1463, "sceneMode": 4, "reviewRuleId": null, "isApplyApprove": 0, "reviewRuleName": "", "licenseSwitch": null, "status": 1, "deleteFlag": 0, "submitBy": 1823, "submitName": "superman", "submitDate": 1667985936199, "creationDate": 1667985936458, "creationTimestamp": 1667985936199, "createName": "张三", "createdBy": 1957, "lastUpdateTimestamp": 1667985936199, "lastUpdateDate": 1667985936458, "lastUpdateName": "张三", "lastUpdatedBy": 1957, "schedulerTimestamp": 1667985936199, "schedulerDate": 1667985936199, "operationTimestamp": 1667985936199, "signInConfig": null, "schedulerName": "OpenApi", "schedulerBy": -1, "entityName": "SceneTask", "sceneTaskId": 5005747, "appName": "isdp-task-server", "affectedRows": 1, "schedulingMode": null }}
  • 响应参数 参数 类型 描述 stateCode String 响应状态码:0-成功;其他-失败 errorMessage String 响应描述 result Object 响应结果内容data、分页数据 data出参: 参数 类型 描述 customerTaskId String 客户任务ID taskId Long 创建成功的任务id status Integer 返回状态:0-成功;1-失败 message String 返回的失败消息。
  • 请求示例 { "customerTaskId": 1667986503488, "taskName": "1667986503734lwc测试", "signSiteName": "", "creatorAccount": "17791717398", "sceneName": "新建工序-测试", "projectNo": "", "assignedUserType": 1, "assignedUser": "13229474258", "reviewRuleName": "", "beginTimestamp": "", "endTimestamp": "", "requiredStartTime": "", "requiredEndTime": "", "taskRemark": "", "priority": "", "jobDuration": "", "projectDuration": "", "schedulingMode": "", "administrativeDivisionName": "1508098844233300", "address": "", "skill": "", "customerName": "", "supplierName": "", "taskExtendList": [], "toolSet": [ { "toolNo": "T003", "toolName": "子任务2-工序1", "toolLocation": { "x": 100, "y": 200 } } ], "procedureList": [ { "modeOrder": "1", "collectionReviewName": "", "toolSet": [ { "toolNo": "T003", "toolName": "子任务2-工序1", "toolLocation": { "x": 100, "y": 200 } } ] } ]}
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "customerTaskId": "1667986503488", "subTaskOrNot": 0, "procedureOrNot": 1, "ticketId": 0, "tenantId": 1463, "sceneMode": 3, "reviewRuleId": null, "isApplyApprove": 0, "reviewRuleName": "", "licenseSwitch": null, "status": 1, "deleteFlag": 0, "submitBy": 1823, "submitName": "superman", "submitDate": 1667986531707, "creationDate": 1667986531987, "creationTimestamp": 1667986531707, "createName": "张三", "createdBy": 1957, "lastUpdateTimestamp": 1667986531707, "lastUpdateDate": 1667986531987, "lastUpdateName": "张三", "lastUpdatedBy": 1957, "schedulerTimestamp": 1667986531707, "schedulerDate": 1667986531707, "operationTimestamp": 1667986531707, "signInConfig": null, "schedulerName": "OpenApi", "schedulerBy": -1, "entityName": "SceneTask", "sceneTaskId": 5005759, "appName": "isdp-task-server", "affectedRows": 1 }}
  • 相关接口 接口名称 调用说明 获取Token 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 查询任务场景 调用该接口获取到任务场景的场景名称。 创建任务时,需要输入获取到的场景名称。 查询租户下用户信息(API名称:getPersonListByTenant) 调用该接口获取执行人。 创建任务时,任务模式为“启用子任务”时,需要输入获取到执行人;其他任务模式“执行人”为空则提交后为“待调度”状态,“执行人”填写后提交为“待执行”或“任务申请待审批”状态。 查询父任务 创建任务后,可以调用该接口查询创建的任务。
  • 请求示例 { "taskScheduleName": "wwwwww333", "isEnable": "1", "taskBody": { "beginTimeBlur": false, "endTimeBlur": false, "issueId": "", "creatorDescribe": "", "label": { "location": "作业对象修1ss", "administrativeDivision": "行政区域修改11", "address": "详细地址11", "projectNo": "项目修改11", "supplier": "供应商1", "customer": "客户1", "executor": "执行人" }, "taskName": "75675_测试OpenAPI", "assignedUserId": "", "assignedUserName": "", "userGroup": "", "userGroupName": "", "sceneName": "测试OpenAPI", "sceneId": 107879, "sceneCode": "TS20220714104642265", "sceneVersion": "1.0", "signSiteId": 98990722, "signSiteCode": "5756", "signSiteName": "75675", "projectNo": "55788", "projectName": "gcl", "supplierName": "", "beginTimestamp": 1657814400000, "endTimestamp": 1657900799999, "requiredStartTime": "", "requiredEndTime": "", "projectDuration": "", "jobDuration": "", "adminOrganizationName": "杨凌作业系统测试1", "adminOrganization": "830", "administrativeDivisionName": "Y区域", "administrativeDivision": "455845", "sceneLicense": null, "templateId": 263435, "templateCode": "QC2022XXXXXXXXXXXXX", "templateName": "测试模板20220714001", "version": "1.0", "reviewRuleId": "", "reviewRuleName": "", "taskRemark": "", "procedureList": [], "subTaskList": [], "isAppraisal": "0", "collectionReviewId": "", "collectionReviewName": "", "collectionProcessType": "", "priority": "", "schedulingMode": "", "address": "wwww", "skill": "", "customerName": "", "customerId": "", "taskExtend": [], "isApplyApprove": null, "processType": "", "signInConfig": null, "ccPerson": "", "ccPersonName": "", "ccPersonGroup": "", "ccPersonGroupName": "", "owner": "", "ownerName": "", "ownerGroup": "", "ownerGroupName": "", "customApproveReviewerList": [], "customCollectionReviewerList": [], "templateType": "", "taskMode": 2, "saveDraft": "1", "plannedBeginType": "0", "plannedCompletionType": "0", "beginNumberOfHours": 0, "endNumberOfHours": 0, "scheduleDayList": [], "scheduleDay": "", "scheduleType": "1", "scheduleMoon": "", "scheduleWeek": "2,3,4,5,6", "scheduleHour": "2,3,5", "cronExpr": "0 0 2,3,5 ? * 2,3,4,5,6" }, "taskScheduleId": 4611}
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "taskScheduleId": 4611, "taskScheduleName": "wwwwww333", "isEnable": 1, "taskBody": "{\"isSubTask\":null,\"issueId\":null,\"sceneId\":107879,\"sceneTaskId\":null,\"sceneName\":\"测试OpenAPI\",\"sceneCode\":\"TS20220714104642265\",\"sceneVersion\":\"1.0\",\"signSiteId\":98990722,\"signSiteCode\":\"5756\",\"signSiteName\":\"75675\",\"adminRegion\":null,\"adminRegionName\":null,\"projectNo\":\"55788\",\"projectName\":\"gcl\",\"adminOrganization\":\"830\",\"adminOrganizationName\":\"XX作业系统测试1\",\"supplierName\":\"\",\"taskName\":\"75675_测试OpenAPI\",\"templateId\":263435,\"templateName\":\"测试模板20220714001\",\"templateCode\":\"QC2022XXXXXXXXXXXXX\",\"version\":\"1.0\",\"beginTimestamp\":1657814400000,\"endTimestamp\":1657900799999,\"taskRemark\":\"\",\"taskMode\":2,\"assignedUserId\":\"\",\"assignedUserName\":\"\",\"userGroup\":\"\",\"userGroupName\":\"\",\"signInConfig\":null,\"submitBy\":null,\"submitName\":null,\"operationGuideList\":null,\"attachmentList\":null,\"taskExtend\":[],\"procedureList\":[],\"subTaskList\":[],\"reviewRuleId\":null,\"reviewRuleName\":\"\",\"processType\":null,\"saveDraft\":1,\"isApplyApprove\":null,\"licenseSwitch\":null,\"isAppraisal\":0,\"collectionReviewId\":null,\"collectionReviewName\":\"\",\"collectionProcessType\":null,\"sceneLicense\":null,\"customCollectionReviewerList\":[],\"customApproveReviewerList\":[],\"terminalType\":null,\"priority\":\"\",\"jobDuration\":null,\"projectDuration\":null,\"schedulingMode\":\"\",\"administrativeDivision\":\"455845\",\"administrativeDivisionName\":\"Y区域\",\"regionId\":null,\"regionPath\":null,\"regionName\":null,\"address\":\"wwww\",\"requiredStartTime\":null,\"requiredEndTime\":null,\"skill\":\"\",\"customerId\":null,\"customerName\":\"\",\"category\":\"\",\"categoryId\":null,\"parentCategory\":\"\",\"parentCategoryId\":null,\"isAssociationIssue\":null,\"associationIssueId\":null,\"ccPerson\":\"\",\"ccPersonName\":\"\",\"owner\":\"\",\"ownerName\":\"\",\"ccPersonGroup\":\"\",\"ccPersonGroupName\":\"\",\"ownerGroup\":\"\",\"ownerGroupName\":\"\",\"resource\":null,\"status\":null,\"positionName\":null,\"cronExpr\":\"0 0 2,3,5 ? * 2,3,4,5,6\",\"scheduleHour\":\"2,3,5\",\"scheduleWeek\":\"2,3,4,5,6\",\"scheduleMoon\":\"\",\"scheduleDay\":\"\",\"scheduleDayList\":[],\"scheduleType\":1,\"beginNumberOfHours\":0,\"endNumberOfHours\":0,\"plannedCompletionType\":0,\"plannedBeginType\":0,\"creatorDescribe\":\"\",\"schedulerBy\":null,\"schedulerName\":null,\"schedulerTimestamp\":null,\"schedulerDate\":null,\"validateFile\":true}", "lastUpdatedBy": 390841, "lastUpdateName": "zdrun-test", "lastUpdateDate": "2022-07-15 11:39:08", "lastUpdateTimestamp": 1657856348770, "entityName": "IsdpTaskSchedule", "affectedRows": 1 }}
  • 请求参数 参数 类型 是否必填 描述 taskScheduleId Long 是 任务调度ID。 taskScheduleName String 是 任务调度名称。 isEnable String 是 是否启用。 1:启用 0:不启用 resource String 否 任务来源。 taskName String 是 任务名称。 sceneName String 是 任务场景名称。 sceneId Long 是 任务场景ID。 signSiteId Long 否 作业对象ID。 signSiteCode String 否 作业对象编码。 signSiteName String 否 作业对象名称。 projectNo String 否 项目编码。 projectName String 否 项目名称。 supplierName String 否 供应商。 assignedUserId String 否 执行人ID。 assignedUserName String 否 执行人名称。 userGroup String 否 执行人群组ID。 userGroupName String 否 执行人群组名称。 assignedUserType String 否 执行人类型。 1:用户 2:群组 assignedUser String 否 执行人账号。 beginTimestamp Long 否 计划开始时间。 endTimestamp Long 否 计划完成时间。 requiredStartTime Long 否 要求开始时间。 requiredEndTime Long 否 要求完成时间。 projectDuration String 否 工期。 jobDuration String 否 标准时长。 adminOrganizationName String 是 管理组织单元名称。 adminOrganization String 是 管理组织单元编码。 administrativeDivision String 否 行政区域。 administrativeDivisionName String 否 行政区域名称。 regionName String 否 行政区域名称。 regionId String 否 行政区域ID。 regionPath String 否 行政区域路径。 skill String 否 技能。 address String 否 详细地址。 templateId Long 否 模板ID。 templateCode String 否 模板编码。 templateName String 否 模板名称。 version String 否 版本。 reviewRuleId Long 否 任务申请审批流ID。 reviewRuleName String 否 任务申请审批流名称。 taskRemark String 否 任务备注。 isAppraisal String 否 任务是否需要审批。 0:不需要审批 1:需要审批 collectionReviewId Long 否 采集审批流ID。 collectionReviewName String 否 采集审批流名称。 collectionProcessType String 否 采集审批流类型。 0:标准审批流 1:临时审批流 2:自定义审批流 priority String 否 优先级。 schedulingMode String 否 调度模式。 customerName String 否 客户名称。 customerId String 否 客户ID。 operationGuideList List 否 操作指导。 attachmentList List 否 附件。 taskMode String 是 任务模式。 1:简单任务 2:任务下挂检查单 saveDraft String 是 保持草稿、提交。 0:保存草稿 1:提交 taskExtendList List 否 任务扩展属性。 scheduleType Integer 否 调度类型。 1:周 2:月 3:日期 4:本月最后一天 scheduleHour String 否 调度小时。 scheduleWeek String 否 调度周。 scheduleDay String 否 调度天。 cronExpr String 否 调度表达式。 scheduleDayList List 否 调度日期。 scheduleWeek List 否 调度周日期。 plannedBeginType Integer 否 计划开始时间类型。 1:当天 2:调度后 beginNumberOfHours Integer 否 计划开始时间多少小时后。 plannedCompletionType Integer 否 计划结束时间类型。 1:当天 2:调度后 endNumberOfHours Integer 否 计划完成时间多少小时后。 url String 否 待办地址。 thirdUrl String 否 第三方待办地址。 resource String 否 数据源。 operUserId String 是 操作人ID。
  • 响应参数 参数 类型 描述 stateCode String 响应编码。 errorMessage String 错误信息。 result Object 响应数据。 result Object属性: 参数 类型 描述 assignedUserId Long 执行人ID。 assignedUserName String 执行人名称。 userGroupName String 群组名称。 userGroup String 群组。 taskExtend List 任务扩展属性。
  • 响应参数 参数 类型 描述 stateCode String 响应编码。 errorMessage String 错误信息。 result Object 响应数据。 result参数 参数 类型 描述 totalCount int 数据总计计数。 status int -1:表示未被删除的总数;-2:表示删除的总数;0:草稿;1:待执行;2:执行中;3:已完成;4:已取消;5:申请待审批;6:待调度;9:已驳回
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": [ { "totalCount": 137, "status": 9 }, { "totalCount": 1853, "status": 2 }, { "totalCount": 40984, "status": 0 }, { "totalCount": 3115, "status": 5 }, { "totalCount": 10, "status": 4 }, { "totalCount": 27401, "status": 6 }, { "totalCount": 40601, "status": -2 }, { "totalCount": 41077, "status": 1 }, { "totalCount": 1474, "status": 3 }, { "totalCount": 116051, "status": -1 } ]}
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "data": [ { "sceneTaskId": 1836272, "taskName": "openapi_批量创建zhang4个子任务_有一个无配置关系修改", "sceneName": "zhang4个子任务_有一个无配置关系", "adminOrganization": "52479", "adminOrganizationName": "新版本测试租户1029", "signSiteId": null, "signSiteCode": null, "signSiteName": null, "beginTimestamp": null, "endTimestamp": null, "jobDuration": null, "status": 0, "customerTaskId": "20qe333", "isApplyApprove": 0, "actualBeginTime": null, "actualEndTime": null, "processFeedback": null, "reviewRuleName": "", "reviewRuleId": null, "isAppraisal": null, "excutor": [ { "sceneTaskId": 1836272, "taskType": 1, "userId": 101277, "userInfoId": 3875284, "userName": "改名张小玲", "userType": 1 } ], "subTaskList": [ { "sceneTaskId": 363088, "taskName": "子任务11", "taskId": 1836272, "status": 0, "signSiteId": null, "signSiteCode": null, "signSiteName": "", "beginTimestamp": null, "endTimestamp": null, "actualBeginTime": null, "actualEndTime": null, "processFeedback": null, "jobDuration": null, "excutor": [ { "sceneTaskId": 363088, "taskType": 2, "userId": 101277, "userInfoId": 3875294, "userName": "改名张小玲", "userType": 1 } ], "taskExtend": null, "preModeNames": null }, { "sceneTaskId": 363089, "taskName": "子任务22", "taskId": 1836272, "status": 0, "signSiteId": null, "signSiteCode": null, "signSiteName": "", "beginTimestamp": null, "endTimestamp": null, "actualBeginTime": null, "actualEndTime": null, "processFeedback": null, "jobDuration": null, "excutor": [ { "sceneTaskId": 363089, "taskType": 2, "userId": 101277, "userInfoId": 3875295, "userName": "改名张小玲", "userType": 1 } ], "taskExtend": null, "preModeNames": "子任务11,子任务44" }, { "sceneTaskId": 363090, "taskName": "子任务33", "taskId": 1836272, "status": 0, "signSiteId": null, "signSiteCode": null, "signSiteName": "", "beginTimestamp": null, "endTimestamp": null, "actualBeginTime": null, "actualEndTime": null, "processFeedback": null, "jobDuration": null, "excutor": [ { "sceneTaskId": 363090, "taskType": 2, "userId": 101277, "userInfoId": 3875296, "userName": "改名张小玲", "userType": 1 } ], "taskExtend": null, "preModeNames": "子任务11" }, { "sceneTaskId": 363091, "taskName": "子任务44", "taskId": 1836272, "status": 0, "signSiteId": null, "signSiteCode": null, "signSiteName": "", "beginTimestamp": null, "endTimestamp": null, "actualBeginTime": null, "actualEndTime": null, "processFeedback": null, "jobDuration": null, "excutor": [ { "sceneTaskId": 363091, "taskType": 2, "userId": 101277, "userInfoId": 3875297, "userName": "改名张小玲", "userType": 1 } ], "taskExtend": null, "preModeNames": null } ], "taskExtend": null } ], "pos": 0, "total_count": 1, "entityName": null, "totalCount": 1 }}
  • 请求参数 参数 类型 是否必填 描述 taskScheduleName String 是 任务调度名称。 isEnable String 是 是否启用。 1:启用 0:不启用 taskBody Object 是 任务详情。 taskBody参数 参数 类型 是否必填 描述 taskName String 是 任务名称。 sceneName String 是 任务场景名称。 sceneId Long 是 任务场景ID。 signSiteId Long 否 作业对象ID。 signSiteCode String 否 作业对象编码。 signSiteName String 否 作业对象名称。 projectNo String 否 项目编码。 projectName String 否 项目名称。 supplierName String 否 供应商。 assignedUserId String 否 执行人ID。 assignedUserName String 否 执行人名称。 userGroup String 否 执行人群组ID。 userGroupName String 否 执行人群组名称。 assignedUserType String 否 执行人类型。 1:用户 2:群组 assignedUser String 否 执行人账号。 beginTimestamp Long 否 计划开始时间。 endTimestamp Long 否 计划完成时间。 requiredStartTime Long 否 要求开始时间。 requiredEndTime Long 否 要求完成时间。 projectDuration String 否 工期。 jobDuration String 否 标准时长。 adminOrganizationName String 是 管理组织单元名称。 adminOrganization String 是 管理组织单元编码。 administrativeDivision String 否 行政区域。 administrativeDivisionName String 否 行政区域。 regionName String 否 行政区域名称。 regionId String 否 行政区域ID。 regionPath String 否 行政区域路径。 skill String 否 技能。 address String 否 详细地址。 templateId Long 否 模板ID。 templateCode String 否 模板编码。 templateName String 否 模板名称。 version String 否 版本。 reviewRuleId Long 否 任务申请审批流ID。 reviewRuleName String 否 任务申请审批流名称。 taskRemark String 否 任务备注。 isAppraisal String 否 任务是否需要审批。 0:不需要审批 1:需要审批 collectionReviewId Long 否 采集审批流ID。 collectionReviewName String 否 采集审批流名称。 collectionProcessType String 否 采集审批流类型。 0:标准审批流 1:临时审批流 2:自定义审批流 priority String 否 优先级。 schedulingMode String 否 调度模式。 customerName String 否 客户名称。 customerId String 否 客户ID。 operationGuideList List 否 操作指导。 attachmentList List 否 附件。 taskMode String 是 任务模式。 1:简单任务 2:任务下挂检查单 saveDraft String 是 保持草稿、提交。 0:保存草稿 1:提交 taskExtendList List 否 任务扩展属性。 scheduleType Integer 否 调度类型。 1:周 2:月 3:日期 4:本月最后一天 scheduleHour String 否 调度小时。 scheduleWeek String 否 调度周日期。 scheduleDay String 否 调度天。 cronExpr String 否 调度表达式。 scheduleDayList List 否 调度日期。 plannedBeginType Integer 否 计划开始时间类型。 0:当天 1:调度后 beginNumberOfHours Integer 否 计划开始时间多少小时后。 plannedCompletionType Integer 否 计划结束时间类型。 0:当天 1:调度后 endNumberOfHours Integer 否 计划完成时间多少小时后。 url String 否 待办地址。 thirdUrl String 否 第三方待办地址。 resource String 否 数据源。 operUserId Long 否 操作人ID。
  • 响应示例 {"stateCode": "0", "errorMessage": null, "result": { "data": [ { "taskName": "1_20220908_144225", "taskType": 2, "sceneTaskId": 1919494, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": null, "parentTaskId": 2949685, "parentCategory": "", "sceneName": "", "adminOrganization": "", "actualEndTime": null, "executorList": [ { "userId": 153169, "userName": "lyl09修改", "userType": 1, "sceneTaskId": 1919494 } ], "totalCount": 1, "finishCount": 0, "isExpire": 0 }, { "taskName": "2_20220908_144225", "taskType": 2, "sceneTaskId": 1919495, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": null, "parentTaskId": 2949685, "parentCategory": "", "sceneName": "", "adminOrganization": "", "actualEndTime": null, "executorList": [ { "userId": 153169, "userName": "lyl09修改", "userType": 1, "sceneTaskId": 1919495 } ], "totalCount": 1, "finishCount": 0, "isExpire": 0 }, { "taskName": "1_20220908_144443", "taskType": 2, "sceneTaskId": 1919498, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": null, "parentTaskId": 2949686, "parentCategory": "", "sceneName": "", "adminOrganization": "", "actualEndTime": null, "executorList": [ { "userId": 153169, "userName": "lyl09修改", "userType": 1, "sceneTaskId": 1919498 } ], "totalCount": 1, "finishCount": 0, "isExpire": 0 }, { "taskName": "1_20220909_151311", "taskType": 2, "sceneTaskId": 1919657, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": null, "parentTaskId": 2951381, "parentCategory": "", "sceneName": "", "adminOrganization": "", "actualEndTime": null, "executorList": [ { "userId": 153169, "userName": "lyl09修改", "userType": 1, "sceneTaskId": 1919657 } ], "totalCount": 1, "finishCount": 0, "isExpire": 0 }, { "taskName": "子任务1_20220914_142712", "taskType": 2, "sceneTaskId": 1920826, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": 1663136980000, "parentTaskId": 2955633, "parentCategory": "", "sceneName": "", "adminOrganization": "", "actualEndTime": null, "executorList": [ { "userId": 25804, "userName": "刘月", "userType": 1, "sceneTaskId": 1920826 } ], "totalCount": 1, "finishCount": 0, "isExpire": 1 }, { "taskName": "14:40_20220908_144225", "taskType": 1, "sceneTaskId": 2949685, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": null, "parentTaskId": 0, "parentCategory": "", "sceneName": "14:40", "adminOrganization": "杨凌作业系统测试№", "actualEndTime": null, "executorList": [ { "userId": 153169, "userName": "lyl09修改", "userType": 1, "sceneTaskId": 2949685 } ], "totalCount": 2, "finishCount": 0, "isExpire": 0 }, { "taskName": "测试计划结束", "taskType": 1, "sceneTaskId": 2955633, "sceneMode": 4, "isNa": 0, "status": 1, "endTimestamp": 1663136980000, "parentTaskId": 0, "parentCategory": "", "sceneName": "测试统计计划结束时间", "adminOrganization": "杨凌作业系统测试№", "actualEndTime": null, "executorList": [ { "userId": 25804, "userName": "刘月", "userType": 1, "sceneTaskId": 2955633 } ], "totalCount": 1, "finishCount": 0, "isExpire": 1 } ], "pos": 0, "total_count": 7, "entityName": null, "totalCount": 7 }}
  • 相关接口 接口名称 调用说明 获取Token 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 查询父任务 调用该接口获取到父任务ID。 查询执行人或评审人时,如果查询父任务的执行人或评审人,需要输入父任务ID。 查询子任务 调用该接口获取到子任务ID。 查询执行人或评审人时,如果查询子任务的执行人或评审人,需要输入子任务ID。 查询工序 调用该接口获取到工序ID。 查询执行人或评审人时,如果查询工序的执行人或评审人,需要输入工序ID。
共100000条
提示

您即将访问非华为云网站,请注意账号财产安全