更新任务场景(API名称:updateTaskScene)
功能介绍
更新任务场景。
相关API
|
接口名称 |
调用说明 |
|---|---|
|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
|
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
|---|---|---|---|
|
POST |
https://isdp+域名/openapi/v1/openTaskScene/updateTaskScene |
OpenAPI |
application/json |
请求头
|
KEY |
VALUE |
是否必填 |
描述 |
|---|---|---|---|
|
Content-Type |
application/json |
是 |
无 |
|
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
|
参数 |
类型 |
是否必填 |
描述 |
|---|---|---|---|
|
dataSource |
String |
是 |
创建来源标识。 |
|
submitterAccount |
String |
是 |
提交人账号。 |
|
taskSceneBaseFieldList |
Object |
是 |
基础字段。 |
|
taskSceneExtendFieldList |
Object |
否 |
扩展字段。 |
|
sceneMode |
Integer |
否 |
任务场景模式。 1:简单任务 2:关联作业检查清单 3:任务启用工序 4:父子任务 |
|
sceneStatus |
Integer |
否 |
任务场景状态。 0:草稿 1:可用 2:停用 |
|
operationFlag |
String |
是 |
是否是提交或者保存草稿。 Y:提交 N:保存草稿 |
|
taskSceneModeList |
Object |
是 |
任务场景配置模板信息。 |
|
headerInfo |
Object |
是 |
任务场景配置场景信息。 |
|
isApplyApprove |
Integer |
否 |
是否需要申请审批。 0:否 1:是 |
|
reviewProcessId |
Long |
否 |
评审流ID。 |
|
reviewProcessName |
String |
否 |
评审流名称。 |
|
adminOrganizationCode |
String |
是 |
组织单元ID。 |
|
adminOrganizationName |
String |
是 |
组织单元名称。 |
|
signInConfig |
Integer |
否 |
是否启用打卡配置。 1:启用 0:不启用 null:该场景没有引入打卡配置 |
|
sceneId |
Long |
是 |
任务场景ID。 |
|
Version |
String |
否 |
版本号。 |
taskSceneExtendFieldList扩展字段Object说明
|
参数 |
类型 |
是否必填 |
描述 |
|---|---|---|---|
|
fieldName |
String |
是 |
自定义字段名称。 |
|
fieldType |
Integer |
是 |
扩展字段类型。1:文本 2:枚举 3:多枚举 4:日期 5:时间 6:整数;7:小数;20:短文本 0:无意义,字段默认值。 |
|
fieldStatus |
Integer |
是 |
字段状态。 |
|
fieldCode |
String |
是 |
字段编码。 |
|
scopeList |
Object |
是 |
适用范围。1:标准任务 2:临时任务 |
|
fieldOrder |
Integer |
是 |
字段排序序号,从0开始。 |
|
fieldValue |
String |
否 |
字段枚举值。 |
|
fieldDefaultValue |
String |
否 |
字段默认值。 |
|
fieldIsNecessary |
Integer |
否 |
是否必填。1:必填 2:其它 |
|
enumList |
Object |
否 |
枚举值列表。 |
|
sceneExtendEnumFieldList |
Object |
否 |
枚举值列表。 |
|
id |
Long |
是 |
主键ID(引入时)。 |
|
category |
Integer |
是 |
分属类别。1:任务 2:子任务 |
|
stage |
Integer |
否 |
任务场景扩展属性阶段 1:创建阶段 2:执行阶段,默认为创建阶段 |
|
unitName |
String |
否 |
单位 |
其中对象信息对照创建任务场景。
响应参数
|
参数 |
类型 |
描述 |
|---|---|---|
|
stateCode |
String |
响应编码。 |
|
errorMessage |
String |
错误信息。 |
|
result |
Object |
响应数据。 |
请求示例
{
"sceneId": 107996,
"reviewProcessId": 34909,
"sceneStatus": 1,
"sceneRemark": "场景描述",
"reviewProcessName": "yytest-二级审批",
"sceneName": "场景名称openAPI014修改1",
"sceneCode": "TS20220719154907686",
"sceneMode": 2,
"sceneType": 0,
"sceneLicense": null,
"sourceSceneId": 107993,
"version": "1.2",
"isNewVersion": 0,
"createdBy": 699960,
"createName": "星星有泪",
"lastUpdatedBy": 699960,
"lastUpdateName": "星星有泪",
"creationTimestamp": 1658216947686,
"lastUpdateTimestamp": 1658218002722,
"deleteFlag": "0",
"signInConfig": "1",
"coverId": null,
"category": "",
"id": null,
"parentCategory": "",
"parentId": null,
"adminOrganizationCode": "830",
"adminOrganizationName": "张三作业系统测试1",
"dataSource": "appcube",
"isApplyApprove": 1,
"headerInfo": {
"sceneName": "场景名称openAPI014修改1",
"sceneRemark": "场景描述",
"adminOrganizationCode": "830",
"adminOrganizationName": "张三作业系统测试1",
"coverId": null,
"category": "",
"id": null,
"sceneCode": "TS20220719154907686",
"sceneId": 107996,
"parentId": null
},
"taskSceneBaseFieldList": [
{
"fieldCode": "executor",
"fieldDefaultValue": [],
"fieldIsNecessary": 1,
"fieldName": "执行人",
"fieldOrder": 1,
"fieldStatus": 1,
"sceneBaseFieldId": 1224580,
"sceneId": 107996,
"_RID": "row_1"
},
{
"itemId": "374104",
"fieldName": "作业对象修11",
"fieldStatus": 2,
"itemAttr1": "2",
"fieldCode": "location",
"itemAttr3": "",
"itemAttr2": "2",
"itemAttr5": "",
"itemAttr4": "",
"fieldOrder": 2,
"itemDesc": "ATTR1:状态(1-可用, 2-停用),ATTR2是否必填(1-必填, 2-不必填),ATTR3不可修改字段",
"classifyCode": "QC_TASK_BASE_FIELD",
"_RID": "row_2",
"fieldIsNecessary": 2
},
{
"itemId": "374072",
"fieldName": "行政区域修改11",
"fieldStatus": 2,
"itemAttr1": "",
"fieldCode": "administrativeDivision",
"itemAttr3": "",
"itemAttr2": "2",
"itemAttr5": "",
"itemAttr4": "",
"fieldOrder": 3,
"itemDesc": "ATTR1:状态(1-可用, 2-停用),ATTR2是否必填(1-必填, 2-不必填),ATTR3不可修改字段",
"classifyCode": "QC_TASK_BASE_FIELD",
"_RID": "row_3",
"fieldIsNecessary": 2
},
{
"itemId": "375299",
"fieldName": "计划开始时间1",
"fieldStatus": 2,
"itemAttr1": "2",
"fieldCode": "planBeginDate",
"itemAttr3": "",
"itemAttr2": "2",
"itemAttr5": "",
"itemAttr4": "",
"fieldOrder": 4,
"itemDesc": "ATTR1:状态(1-可用, 2-停用),ATTR2是否必填(1-必填, 2-不必填),ATTR3不可修改字段",
"classifyCode": "QC_TASK_BASE_FIELD",
"_RID": "row_10",
"fieldIsNecessary": 2
},
{
"itemId": "375300",
"fieldName": "计划完成时间1",
"fieldStatus": 2,
"itemAttr1": "2",
"fieldCode": "planEndDate",
"itemAttr3": "",
"itemAttr2": "2",
"itemAttr5": "",
"itemAttr4": "",
"fieldOrder": 5,
"itemDesc": "ATTR1:状态(1-可用, 2-停用),ATTR2是否必填(1-必填, 2-不必填),ATTR3不可修改字段",
"classifyCode": "QC_TASK_BASE_FIELD",
"_RID": "row_11",
"fieldIsNecessary": 2
},
{
"fieldCode": "signInConfig",
"fieldDefaultValue": null,
"fieldIsNecessary": 2,
"fieldName": "打卡配置",
"fieldOrder": 6,
"fieldStatus": 2,
"sceneBaseFieldId": 1224581,
"sceneId": 107996
},
{
"fieldCode": "reviewRuleConfig",
"fieldDefaultValue": null,
"fieldIsNecessary": 2,
"fieldName": "任务申请审批流配置",
"fieldOrder": 7,
"fieldStatus": 2,
"sceneBaseFieldId": 1224582,
"sceneId": 107996
}
],
"taskSceneExtendFieldList": [
{
"sceneExtendFieldId": 73602,
"sceneId": 107996,
"fieldName": "长文本有值",
"fieldCode": "UDF15",
"parentExtendFieldId": 0,
"fieldType": "1",
"fieldStatus": 1,
"fieldIsNecessary": 1,
"fieldOrder": 1,
"fieldValue": null,
"fieldDefaultValue": "12345678902345678901234567890123456789012123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012312345678901234567890123456789012345678901212345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890345678901456789034567890",
"isNewWay": 1,
"_RID": "row_24"
},
{
"id": 2248,
"category": 1,
"parentExtendId": 0,
"fieldName": "时间有值",
"fieldStatus": 1,
"fieldIsNecessary": 2,
"fieldOrder": 2,
"fieldValue": "",
"fieldDefaultValue": "1657003231000",
"scopeList": [
2,
1
],
"fieldCode": "UDF9",
"fieldType": 5,
"enumList": [],
"_RID": "row_29",
"sceneExtendEnumFieldList": []
}
],
"taskSceneModeList": [
{
"sceneModeId": 205721,
"sceneId": 107996,
"issueId": null,
"parentSceneModeId": 0,
"templateType": "1",
"templateId": "263489",
"templateName": "模板名称023",
"sceneMode": 2,
"taskTypeTag": 1,
"modeLevel": 1,
"modeOrder": 1,
"templateCode": "QC2022XXXXXXXXXXXXX",
"sceneModeName": "场景名称openAPI014修改1",
"templateVersion": "1.0",
"deleteFlag": 0,
"tenantId": 886,
"licenseSwitch": 0,
"licenseTag": null,
"lastUpdatedBy": 699960,
"lastUpdateName": "星星有泪",
"isAppraisal": 0,
"collectionReviewId": null,
"collectionReviewName": "",
"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": [],
"taskSceneFileList": [],
"operationFlag": "Y"
}
响应示例
{"stateCode":"0","errorMessage":null,"result":{"sceneId":107997,"fromSceneId":107996}}