ISDP-创建任务场景(API名称:createTaskSceneTemplate):请求参数

时间:2025-02-12 15:15:10

请求参数

参数

类型

是否必填

描述

dataSource

String

创建来源标识。

submitterAccount

String

提交人账号。

taskSceneBaseFieldList

Object

基础字段。

taskSceneExtendFieldList

Object

扩展字段

subBaseFieldConfig

List

子任务场景基础字段(父子任务场景中使用)

subTaskExtendFieldList

List

子任务场景扩展字段(父子任务场景中使用)

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:该场景没有引入打卡配置

taskSceneBaseFieldList基础字段Object说明:

参数

类型

是否必填

描述

fieldName

String

字段名称。

fieldStatus

Integer

字段状态。
  • 1:可用
  • 2:停用

fieldIsNecessary

Integer

是否必填。
  • 1:必填
  • 2:其它

fieldCode

String

字段编码。

fieldOrder

Integer

字段排序序号。

fieldDefaultValue

String

基础字段默认值。

extraData1

String

附加属性。

subBaseFieldConfig子任务场景基础字段Object说明:

参数

类型

是否必填

描述

fieldName

String

字段名称。

fieldStatus

Integer

字段状态。1:可用 2:停用

fieldCode

String

字段编码。

taskSceneExtendFieldListsubTaskExtendFieldList(创建父子任务场景时候填写)扩展字段Object说明

参数

类型

是否必填

描述

fieldName

String

自定义字段名称。

fieldType

Integer

扩展字段类型。1:文本 2:枚举 3:多枚举 4:日期 5:时间 6:整数;7:小数;20:短文本 0:无意义,字段默认值。

fieldStatus

Integer

字段状态。

fieldCode

String

字段编码。

scopeList

Object

适用范围。1:标准任务

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

单位名称

fieldDefaultValue基础字段默认值执行人字段Object说明("fieldCode": "executor"):

参数

类型

是否必填

描述

userId

Long

用户ID,执行人群组ID。

userName

String

用户名称。

userType

Integer

用户类型。
  • 1:执行人
  • 2:执行人群组

taskSceneModeList任务场景配置模板信息Object说明:

参数

类型

是否必填

描述

collectionProcessType

Integer

审批流类型。
  • 0:标准审批
  • 1:临时审批流
  • 2:自定义审批流

collectionReviewId

Long

采集评审流ID。

collectionReviewName

String

用户类型。
  • 1:执行人
  • 2:执行人群组

customCollectionReviewerList

Object

采集评审人列表。

isAppraisal

Integer

是否需要采集评审。
  • 0:否
  • 1:是

modeOrder

Integer

排序序号,从1开始。

sceneMode

Integer

任务场景模式。
  • 1:简单任务
  • 2:关联作业检查清单
  • 3:任务启用工序
  • 4:父子任务

sceneModeName

String

不汲及

子任务/工序名称

oldSceneModeName

String

不汲及

升级前子任务/工序名称

templateCode

String

模板编码。

templateId

Long

模板ID。

templateName

String

模板名称。

templateVersion

String

模板模板号。

templateType

Integer

模板类型。
  • 0:安全检查
  • 1:质量检查
  • 2:巡检

templateModel

Object

创建新的模板,kcpList不为空则直接发布新的模板。

kcpList

Object

创建新的KCP列表信息。

subTaskExtendFieldList

List

创建父子任务场景,子任务扩展属性对象

taskSceneModeList中subTaskExtendFieldList子任务场景扩展属性信息Object说明:

参数

类型

是否必填

描述

fieldCode

String

场景名称。

fieldDefaultValue

String

场景描述。

stage

Integer

子任务场景扩展属性阶段 1:创建阶段 2:执行阶段

其中templateModel、kcpList参数参照保存检查单模板KCP、ITEM信息接口。

headerInfo任务场景配置场景信息Object说明:

参数

类型

是否必填

描述

sceneName

String

场景名称。

sceneRemark

String

场景描述。

adminOrganizationCode

String

组织单元ID。

adminOrganizationName

String

组织单元名称。

category

String

领域场景。

id

Long

领域场景(任务类别ID)。

sceneType

Integer

场景创建类型。
  • 0:按场景创建
  • 1:手动创建虚拟场景
  • 2:许可场景
support.huaweicloud.com/api-isdp/api_01_0025.html