查询任务场景详情(API名称:getTaskSceneConfigInfo)
功能介绍
查询任务场景详情。
相关API
接口名称 |
调用说明 |
---|---|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
---|---|---|---|
POST |
https://isdp+域名/openapi/v1/openTaskScene/getTaskSceneConfigInfo |
OpenAPI |
application/json |
请求头
KEY |
VALUE |
是否必填 |
描述 |
---|---|---|---|
Content-Type |
application/json |
是 |
无 |
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
sceneCode |
String |
否 |
任务场景编码。 |
sceneId |
Long |
否 |
任务场景ID。 |
dataSource |
String |
否 |
创建来源标识。 |
响应参数
参数 |
类型 |
描述 |
---|---|---|
stateCode |
String |
响应编码。 |
errorMessage |
String |
错误信息。 |
result |
Object |
响应数据。 |
result参数说明
参数 |
类型 |
描述 |
---|---|---|
dataSource |
String |
创建来源标识。 |
taskSceneBaseFieldList |
Object |
基础字段。 |
taskSceneExtendFieldList |
Object |
扩展字段。 |
sceneMode |
Integer |
任务场景模式。 2-关联作业检查清单 |
sceneStatus |
Integer |
任务场景状态。
|
operationFlag |
String |
是否是提交或者保存草稿。
|
taskSceneModeList |
Object |
任务场景配置模板信息。 |
headerInfo |
Object |
任务场景配置场景信息。 |
isApplyApprove |
Integer |
是否需要申请审批。
|
reviewProcessId |
Long |
评审流ID。 |
reviewProcessName |
String |
评审流名称。 |
adminOrganizationCode |
String |
组织单元ID。 |
adminOrganizationName |
String |
组织单元名称。 |
taskSceneExtendFieldList中object信息说明
参数 |
类型 |
描述 |
---|---|---|
fieldCode |
String |
任务场景扩展属性编码 |
fieldName |
String |
任务场景扩展属性名称 |
fieldDefaultValue |
String |
扩展属性默认值 |
stage |
Integer |
任务场景扩展属性所属阶段1:创建;2:执行 |
fieldOrder |
Integer |
扩展属性顺序 |
extendValue |
String |
扩展属性值 |
fieldStatus |
String |
扩展属性状态 1:可用 2:停用 |
fieldType |
Integer |
扩展属性类型(1:长文本;2:枚举;3:多枚举;4:日期;5:时间;6:整数;7:小数;20:短文本) |
maxValue |
String |
最大值 |
minValue |
String |
最小值 |
precision |
String |
精度 |
fieldIsNecessary |
Integer |
扩展属性是否必填(1:必填;2:不必填) |
其中对象详情参照5.3.1.4创建任务场景参数说明。
请求示例
{"sceneCode":"TS20220712174237523", "isQueryGlobalBaseField":"Y"}
响应示例
{ "stateCode": "0", "errorMessage": null, "result": { "sceneId": 103210, "reviewProcessId": 100417, "sceneStatus": 1, "sceneRemark": "场景描述12", "reviewProcessName": "测试审批流123", "sceneName": "场景名称101", "sceneCode": "TS20220712174237523", "sceneMode": 2, "sceneType": 0, "sceneLicense": null, "sourceSceneId": 103209, "version": "1.1", "isNewVersion": 0, "createdBy": 1953, "createName": "龙XX1", "lastUpdatedBy": 1953, "lastUpdateName": "龙XX1", "creationTimestamp": 1657618957523, "lastUpdateTimestamp": 1657628842775, "deleteFlag": "0", "signInConfig": null, "coverId": null, "category": "", "id": null, "parentCategory": null, "parentId": null, "adminOrganizationCode": "1543", "adminOrganizationName": "1508098844233300", "isApplyApprove": 1, "headerInfo": { "coverId": null, "adminOrganizationName": "1508098844233300", "sceneRemark": "场景描述12", "sceneCode": "TS20220712174237523", "sceneName": "场景名称101", "sceneId": 103210, "parentCategory": null, "adminOrganizationCode": "1543", "id": null, "category": "", "parentId": null }, "taskSceneBaseFieldList": [ { "fieldCode": "location", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "作业对象", "fieldOrder": 1, "fieldStatus": 2, "sceneBaseFieldId": 132104, "sceneId": 103210, "signSiteId": null, "signSiteCode": null }, { "fieldCode": "administrativeDivision", "fieldDefaultValue": "中国>XX省>XX", "fieldIsNecessary": 1, "fieldName": "行政区域", "fieldOrder": 2, "fieldStatus": 1, "sceneBaseFieldId": 132105, "sceneId": 103210, "administrativeDivision": "1849,1851,4544", "administrativeDivisionName": "中国>XX省>XX", "regionPath": "1849,1851,4544", "regionPathName": "中国>XX省>XX", "regionId": "4544", "regionName": "XX" }, { "fieldCode": "address", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "详细地址", "fieldOrder": 3, "fieldStatus": 2, "sceneBaseFieldId": 132106, "sceneId": 103210 }, { "fieldCode": "projectNo", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "项目", "fieldOrder": 4, "fieldStatus": 2, "sceneBaseFieldId": 132107, "sceneId": 103210, "projectNo": null }, { "fieldCode": "supplier", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "供应商", "fieldOrder": 5, "fieldStatus": 2, "sceneBaseFieldId": 132108, "sceneId": 103210 }, { "fieldCode": "customer", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "客户", "fieldOrder": 6, "fieldStatus": 2, "sceneBaseFieldId": 132109, "sceneId": 103210, "customerId": null, "customerName": null }, { "fieldCode": "jobDuration", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "标准作业时长", "fieldOrder": 7, "fieldStatus": 2, "sceneBaseFieldId": 132110, "sceneId": 103210 }, { "fieldCode": "projectDuration", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "工期", "fieldOrder": 8, "fieldStatus": 2, "sceneBaseFieldId": 132111, "sceneId": 103210 }, { "fieldCode": "planBeginDate", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "计划开始时间1", "fieldOrder": 9, "fieldStatus": 2, "sceneBaseFieldId": 132112, "sceneId": 103210 }, { "fieldCode": "planEndDate", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "计划完成时间1", "fieldOrder": 10, "fieldStatus": 2, "sceneBaseFieldId": 132113, "sceneId": 103210 }, { "fieldCode": "requiredStartTime", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "要求开始时间", "fieldOrder": 11, "fieldStatus": 2, "sceneBaseFieldId": 132114, "sceneId": 103210 }, { "fieldCode": "requiredEndTime", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "要求完成时间", "fieldOrder": 12, "fieldStatus": 2, "sceneBaseFieldId": 132115, "sceneId": 103210 }, { "fieldCode": "priority", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "优先级", "fieldOrder": 13, "fieldStatus": 2, "sceneBaseFieldId": 132116, "sceneId": 103210, "priorityId": null }, { "fieldCode": "skill", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "要求技能", "fieldOrder": 14, "fieldStatus": 2, "sceneBaseFieldId": 132117, "sceneId": 103210 }, { "fieldCode": "schedulingMode", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "调度模式", "fieldOrder": 15, "fieldStatus": 2, "sceneBaseFieldId": 132118, "sceneId": 103210, "schedulingModeId": null }, { "fieldCode": "operationGuide", "fieldDefaultValue": [], "fieldIsNecessary": 2, "fieldName": "操作指导", "fieldOrder": 16, "fieldStatus": 2, "sceneBaseFieldId": 132119, "sceneId": 103210 }, { "fieldCode": "attachment", "fieldDefaultValue": [], "fieldIsNecessary": 2, "fieldName": "附件", "fieldOrder": 17, "fieldStatus": 2, "sceneBaseFieldId": 132120, "sceneId": 103210 }, { "fieldCode": "associatedIssues", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "关联问题3", "fieldOrder": 18, "fieldStatus": 2, "sceneBaseFieldId": 132121, "sceneId": 103210, "issueId": null }, { "fieldCode": "taskDescription", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "任务描述4", "fieldOrder": 19, "fieldStatus": 2, "sceneBaseFieldId": 132122, "sceneId": 103210 }, { "fieldCode": "owner", "fieldDefaultValue": [], "fieldIsNecessary": 2, "fieldName": "责任人员1", "fieldOrder": 20, "fieldStatus": 2, "sceneBaseFieldId": 132123, "sceneId": 103210 }, { "fieldCode": "executor", "fieldDefaultValue": [], "fieldIsNecessary": 1, "fieldName": "执行人", "fieldOrder": 21, "fieldStatus": 1, "sceneBaseFieldId": 132124, "sceneId": 103210 }, { "fieldCode": "licenseConfig", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "许可配置", "fieldOrder": 22, "fieldStatus": 2, "sceneBaseFieldId": 132125, "sceneId": 103210 }, { "fieldCode": "reviewRuleConfig", "fieldDefaultValue": null, "fieldIsNecessary": 2, "fieldName": "任务申请审批流配置", "fieldOrder": 23, "fieldStatus": 2, "sceneBaseFieldId": 132126, "sceneId": 103210 } ], "taskSceneExtendFieldList": [ { "sceneExtendFieldId": 110170, "sceneId": 103210, "fieldName": "文本必填有默认", "fieldCode": "UDF1", "parentExtendFieldId": 0, "fieldType": 1, "fieldStatus": 1, "fieldIsNecessary": 1, "fieldOrder": 1, "fieldValue": null, "fieldDefaultValue": "111111", "isNewWay": 1 } ], "taskSceneModeList": [ { "sceneModeId": 103731, "sceneId": 103210, "issueId": null, "parentSceneModeId": 0, "templateType": "1", "templateId": "268611778", "templateName": "模板名称010", "sceneMode": 2, "taskTypeTag": 1, "modeLevel": 1, "modeOrder": 1, "templateCode": "QC2022XXXXXXXXXXXXX", "sceneModeName": "场景名称101", "templateVersion": "1.1", "deleteFlag": 0, "tenantId": 1463, "licenseSwitch": 0, "licenseTag": null, "lastUpdatedBy": 1953, "lastUpdateName": "龙XX", "isAppraisal": 1, "collectionReviewId": 100417, "collectionReviewName": "测试审批流123", "signSiteId": null, "signSiteCode": null, "signSiteName": null, "regionId": null, "regionPath": null, "regionName": null, "description": null, "beginTimestamp": null, "endTimestamp": null, "priority": null, "jobDuration": null, "projectDuration": null, "administrativeDivision": null, "administrativeDivisionName": null, "address": null, "requiredStartTime": null, "requiredEndTime": null, "skill": null, "templateExistFlag": "Y", "assignedUserId": "", "assignedUserName": "", "userGroup": "", "userGroupName": "", "ccPerson": "", "ccPersonName": "", "owner": "", "ownerName": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ownerGroup": "", "ownerGroupName": "", "subTaskExtendFieldList": [] } ], "baseSubTaskFieldList": [], "subTaskExtendFieldList": [] } }