OThinker.H3.DataModel.IBizObjectManager
说明:数据模型管理器
访问入口:this.Engine.BizObjectManager
示例:
this.Engine.BizObjectManager.GetBizQuery("查询编码"); |
方法名称:AddDraftSchema(OThinker.H3.DataModel.BizObjectSchema)
方法说明 | 添加一个草稿业务对象模式。添加前需要先检查是否模式编码是否存在,该检查是不区分大小写的,如果不存在则添加 | |
输入参数 | ||
名称 | 类型 | 说明 |
Schema | OThinker.H3.DataModel.BizObjectSchema | 业务对象模式 |
返回值 | 如果添加成功则返回true;否则返回false |
方法名称:GetDraftSchema(System.String)
方法说明 | 获得草稿业务对象模式 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象 |
返回值 |
方法名称:UpdateDraftSchema(OThinker.H3.DataModel.BizObjectSchema)
方法说明 | 更新业务对象模式 | |
输入参数 | ||
名称 | 类型 | 说明 |
Schema | OThinker.H3.DataModel.BizObjectSchema | 业务对象模式 |
返回值 | 如果更新成功,则返回true;否则返回false |
方法名称:GetPublishedSchema(System.String)
方法说明 | 根据模式编码获得已经发布的业务对象模式 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码,不区分大小写 |
返回值 | 业务对象模式 |
方法名称:GetPublishedSchemas
方法说明 | 获得全部已经发布的业务对象模式 | |
输入参数 | ||
名称 | 类型 | 说明 |
返回值 | 业务对象模式列表 |
方法名称:SetPublishedSchemaState(System.String,OThinker.H3.DataModel.BizObjectSchemaState)
方法说明 | 设置已经发布的业务对象模式的状态 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码 |
State | OThinker.H3.DataModel.BizObjectSchemaState | 状态 |
返回值 | 如果设置成功则返回true;否则返回false |
方法名称:PublishSchema(System.String,System.String@)
方法说明 | 发布一个业务对象模式,实际上,是将业务对象模式从草稿库中读取出来,然后发布到已发布库中,如果新的业务对象模式跟原有的业务对象模式存在冲突,则会回滚到上一次发布的模式中 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码,不区分大小写 |
Message | System.String@ | 返回消息结果 |
返回值 | 如果发布成功,则返回true;否则返回false |
方法名称:GetListenerPolicy(System.String)
方法说明 | 获得一个已发布的业务对象类型监听器的设置 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码 |
返回值 | 监听器的设置 |
方法名称:SetListenerPolicy(System.String,OThinker.H3.DataModel.BizListenerPolicy)
方法说明 | 设置一个已发布的业务对象类型监听器的设置 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码 |
ListenerPolicy | OThinker.H3.DataModel.BizListenerPolicy | 监听器的设置 |
返回值 | 如果设置成功,则返回true;否则返回false |
方法名称:InvokeBizObjectMethod(System.String,OThinker.Data.BoolMatchValue,System.String,OThinker.H3.DataModel.BizObjectType,System.String,System.String,OThinker.H3.BizBus.BizService.BizStructure)
方法说明 | 调用业务对象方法 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 调用该方法的用户ID |
Transactional | OThinker.Data.BoolMatchValue | 事务的ID |
SchemaCode | System.String | 业务对象模式编码 |
BizObjectType | OThinker.H3.DataModel.BizObjectType | 业务对象的类型 |
ObjectId | System.String | 业务对象的ID |
MethodName | System.String | 要执行的方法的名称 |
Params | OThinker.H3.BizBus.BizService.BizStructure | 执行的方法的参数 |
返回值 | 执行的参数的返回值 |
方法名称:GetList(System.String,System.String,System.String,OThinker.H3.BizBus.Filter.Filter,System.Int32@)
方法说明 | 执行Filter方法获取实体结构集合 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 用户ID |
SchemaCode | System.String | 数据模型编码 |
MethodName | System.String | 方法名称 |
Filter | OThinker.H3.BizBus.Filter.Filter | 过滤条件 |
Count | System.Int32@ | 获取集合数据量 |
返回值 | 实体结构集合 |
方法名称:UpdateComment(System.String,System.String,System.String,System.String,System.String,OThinker.Data.BoolMatchValue,System.String,System.Byte[])
方法说明 | 更新审批意见 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
ObjectId | System.String | 数据实体ID |
PropertyName | System.String | 意见数据项的名称 |
CommentID | System.String | 审批意见ID |
Text | System.String | 新的审批意见值 |
Approval | OThinker.Data.BoolMatchValue | 新的审批结果 |
SignatureId | System.String | 新意见采用的签章ID |
Signature | System.Byte[] | 签章二进制对象 |
返回值 | 执行结果:OThinker.H3.ErrorCode |
方法名称:AddComment(OThinker.H3.Data.Comment)
方法说明 | 添加审批意见 | |
输入参数 | ||
名称 | 类型 | 说明 |
Comment | OThinker.H3.Data.Comment | 审批意见对象 |
返回值 | 执行结果:OThinker.H3.ErrorCode |
方法名称:AddComments(OThinker.H3.Data.Comment[])
方法说明 | 批量添加审批意见 | |
输入参数 | ||
名称 | 类型 | 说明 |
Comments | OThinker.H3.Data.Comment[] | 审批意见集合 |
返回值 | 无 |
方法名称:GetCommentsByInstance(System.String,System.String,System.String,System.String,System.String,System.String)
方法说明 | 根据流程实例获取审批意见 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
InstanceId | System.String | 流程实例ID |
PropertyName | System.String | 审批意见数据项名称 |
UserID | System.String | 用户ID |
Activity | System.String | 活动节点编码 |
返回值 | 审批意见集合 |
方法名称:GetCommentsByBizObject(System.String,System.String,System.String)
方法说明 | 根据数据模型获取审批意见 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
PropertyName | System.String | 审批意见数据项名称 |
返回值 | 审批意见集合 |
方法名称:CopyComments(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Int64,System.Boolean)
方法说明 | 复制审核意见 | |
输入参数 | ||
名称 | 类型 | 说明 |
SourceBizObjectSchemaCode | System.String | 源数据模型编码 |
SourceBizObjectId | System.String | 源数据模型ID |
SourceInstanceId | System.String | 源流程实例ID |
SourceDataField | System.String | 源审批类型数据项编码 |
DestBizObjectSchemaCode | System.String | 目标数据模型编码 |
DestBizObjectId | System.String | 目标数据模型ID |
DestInstanceId | System.String | 目标流程实例ID |
DestDataField | System.String | 目标审批类型数据项编码 |
DestTokenId | System.Int64 | 目标活动节点ID |
Override | System.Boolean | 是否覆盖模式 |
返回值 | 无 |
方法名称:GetAttachment(System.String,System.String,System.String,System.String)
方法说明 | 获取附件信息 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 用户ID |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
AttachmentID | System.String | 附件ID |
返回值 | 附件内容 |
方法名称:GetSingleAttachment(System.String,System.String,System.String,System.String,System.String)
方法说明 | 根据BizObjectId获取附件内容 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 读取附件的用户的ID |
BizObjectSchemaCode | System.String | 所属于的业务对象的模式的编码 |
BizObjectId | System.String | 所属于的业务对象的ID |
DataField | System.String | 字段名称 |
FileName | System.String | 文件名称,如果不为空,则表示是获取特定的附件;如果为空,则表示这个字段只能最多有一个附件 |
返回值 | 附件的内容 |
方法名称:GetAttachmentHeader(System.String,System.String,System.String)
方法说明 | 获取附件信息(不包含附件内容) | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
AttachmentID | System.String | 附件ID |
返回值 | 返回附件信息 |
方法名称:GetAttachmentHeaders(System.String,System.String,System.String[])
方法说明 | 获取附件信息集合(不包含附件内容) | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
AttachmentIds | System.String[] | 附件ID集合 |
返回值 | 返回附件信息集合 |
方法名称:AddAttachment(OThinker.H3.Data.Attachment)
方法说明 | 添加附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
Attachment | OThinker.H3.Data.Attachment | 附件对象 |
返回值 | 返回添加后的附件ID |
方法名称:AddAttachments(System.String,System.String,System.String,OThinker.H3.Data.Attachment[],System.Boolean)
方法说明 | 批量添加附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
DataField | System.String | 数据项名称 |
Attachments | OThinker.H3.Data.Attachment[] | 附件对象集合 |
Overwrite | System.Boolean | 是否覆盖模式 |
返回值 | 无 |
方法名称:RemoveAttachment(System.String,System.String,System.String,System.String)
方法说明 | 移除附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 操作用户ID |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
AttachmentID | System.String | 附件ID |
返回值 | 无 |
方法名称:RemoveAttachmentByFileName(System.String,System.String,System.String,System.String,System.String)
方法说明 | 根据附件名称移除附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 操作用户ID |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
DataField | System.String | 数据项名称 |
FileName | System.String | 文件名称 |
返回值 | 无 |
方法名称:QueryAttachment(System.String,System.String,System.String,OThinker.Data.BoolMatchValue,System.String)
方法说明 | 查询附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
DataField | System.String | 数据项名称 |
LastVersion | OThinker.Data.BoolMatchValue | 是否最新版本 |
FileName | System.String | 附件名称 |
返回值 | 返回附件头信息集合 |
方法名称:RemoveAttachments(System.String,System.String,System.String)
方法说明 | 移除附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
DataField | System.String | 数据项名称 |
返回值 | 无 |
方法名称:RemoveAttachmentGarbage
方法说明 | 附件垃圾回收策略 | |
输入参数 | ||
名称 | 类型 | 说明 |
返回值 | 无 |
方法名称:CopyAttachments(System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean)
方法说明 | 将附件从一个数据模型复制到另一个数据模型 | |
输入参数 | ||
名称 | 类型 | 说明 |
SourceBizObjectSchemaCode | System.String | 源数据模型编码 |
SourceBizObjectId | System.String | 源数据实体ID |
SourceDataField | System.String | 源附件类型数据项编码 |
DestBizObjectSchemaCode | System.String | 目标数据模型编码 |
DestBizObjectId | System.String | 目标数据实体ID |
DestDataField | System.String | 目标附件类型数据项编码 |
Override | System.Boolean | 是否覆盖模式 |
返回值 | 无 |
方法名称:AttachBizObject(System.String,System.String[],System.String,System.String,System.String)
方法说明 | 更新附件 | |
输入参数 | ||
名称 | 类型 | 说明 |
UserId | System.String | 操作用户ID |
Attachments | System.String[] | 附件ID集合 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
DataField | System.String | 数据项名称 |
返回值 | 无 |
方法名称:UpdateAttachment(System.String,System.String,System.String,System.String,System.String,System.String,System.Byte[],System.Int64)
方法说明 | 更新附件内容 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
AttachmentID | System.String | 附件ID |
ModifiedBy | System.String | 修改人 |
FileName | System.String | 文件名称 |
ContentType | System.String | 文件类型 |
Content | System.Byte[] | 文件内容 |
FileFlag | System.Int64 | 附件打开模式 |
返回值 | 无 |
方法名称:UpdateAttachmentWeChatMediaID(System.String,System.String,System.DateTime)
方法说明 | 更新微信中的多媒体文件ID | |
输入参数 | ||
名称 | 类型 | 说明 |
AttachmentID | System.String | 附件ID |
WeChatMediaID | System.String | 微信多媒体文件ID |
WeChatMediaExpireTime | System.DateTime | 微信多媒体文件过期时间 |
返回值 | 无 |
方法名称:AddBizQuery(OThinker.H3.DataModel.BizQuery)
方法说明 | 注册 BizQuery 对象 | |
输入参数 | ||
名称 | 类型 | 说明 |
Query | OThinker.H3.DataModel.BizQuery | 查询对象 |
返回值 | 返回操作是否成功 |
方法名称:UpdateBizQuery(OThinker.H3.DataModel.BizQuery)
方法说明 | 更新 BizQuery 对象 | |
输入参数 | ||
名称 | 类型 | 说明 |
Query | OThinker.H3.DataModel.BizQuery | 查询对象 |
返回值 | 返回操作是否成功 |
方法名称:SaveBizQuery(OThinker.H3.DataModel.BizQuery)
方法说明 | 注册 BizQuery 对象(Add/Update) | |
输入参数 | ||
名称 | 类型 | 说明 |
Query | OThinker.H3.DataModel.BizQuery | 查询对象 |
返回值 | 返回操作是否成功 |
方法名称:RemoveBizQuery(OThinker.H3.DataModel.BizQuery)
方法说明 | 移除BizQuery对象 | |
输入参数 | ||
名称 | 类型 | 说明 |
Query | OThinker.H3.DataModel.BizQuery | 查询对象 |
返回值 | 无 |
方法名称:GetBizQuery(System.String)
方法说明 | 获取BizQuery对象 | |
输入参数 | ||
名称 | 类型 | 说明 |
QueryCode | System.String | 查询编码 |
返回值 | 查询对象 |
方法名称:GetBizQueries(System.String)
方法说明 | 根据数据模型编码获取查询对象的集合 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
返回值 | 查询对象的集合 |
方法名称:GetScheduleInvoker(System.String)
方法说明 | 获得定期调用的设置 | |
输入参数 | ||
名称 | 类型 | 说明 |
ScheduleInvokerId | System.String | 定期调用的ID |
返回值 | 定期调用的设置 |
方法名称:GetScheduleInvokerList(System.String)
方法说明 | 获得定期调用的设置 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码 |
返回值 | 定期调用的设置列表 |
方法名称:AddScheduleInvoker(OThinker.H3.DataModel.ScheduleInvoker)
方法说明 | 注册监听器 | |
输入参数 | ||
名称 | 类型 | 说明 |
ScheduleInvoker | OThinker.H3.DataModel.ScheduleInvoker | 监听器 |
返回值 | 如果成功则返回true;否则返回false |
方法名称:UpdateScheduleInvoker(OThinker.H3.DataModel.ScheduleInvoker)
方法说明 | 更新一个监听器 | |
输入参数 | ||
名称 | 类型 | 说明 |
ScheduleInvoker | OThinker.H3.DataModel.ScheduleInvoker | 监听器 |
返回值 | 如果成功则返回true;否则返回false |
方法名称:RemoveScheduleInvoker(System.String)
方法说明 | 删除一个监听器 | |
输入参数 | ||
名称 | 类型 | 说明 |
ScheduleInvokerId | System.String | 监听器ID,不区分大小写 |
返回值 | 如果成功则返回true;否则返回false |
方法名称:RegisterListener(OThinker.H3.DataModel.BizListener)
方法说明 | 注册一个监听器 | |
输入参数 | ||
名称 | 类型 | 说明 |
Listener | OThinker.H3.DataModel.BizListener | 监听器 |
返回值 | 如果注册成功,则返回true;否则返回false |
方法名称:RemoveListener(OThinker.H3.DataModel.BizListener)
方法说明 | 删除一个监听器 | |
输入参数 | ||
名称 | 类型 | 说明 |
Listener | OThinker.H3.DataModel.BizListener | 监听器 |
返回值 | 无 |
方法名称:GetListenersBySchemaCode(System.String)
方法说明 | 获得某个业务对象模式下的所有监听 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 业务对象模式编码 |
返回值 | 所有的监听 |
方法名称:ValidateBizObjectSchema(System.String)
方法说明 | 检验数据模型 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
返回值 | 返回检验结果 |
方法名称:SetPropertyValue(System.String,System.String,System.String,System.String,System.Object)
方法说明 | 设置数据项的值 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
UserId | System.String | 用户ID |
PropertyName | System.String | 数据项名称 |
PropertyValue | System.Object | 数据项的值 |
返回值 | 返回更新是否成功 |
方法名称:SetPropertyValues(System.String,System.String,System.String,System.Collections.Generic.Dictionary{System.String,System.Object})
方法说明 | 设置数据项的值 | |
输入参数 | ||
名称 | 类型 | 说明 |
BizObjectSchemaCode | System.String | 数据模型编码 |
BizObjectId | System.String | 数据实体ID |
UserId | System.String | 用户ID |
PropertyNameValues | System.Collections.Generic.Dictionary{System.String | 数据项(名称,值)的集合 |
返回值 | 返回更新是否成功 |
方法名称:AddBizObjectAcl(OThinker.H3.Acl.BizObjectAcl)
方法说明 | 添加数据项模型权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
Acl | OThinker.H3.Acl.BizObjectAcl | 数据模型权限对象 |
返回值 | 返回更新是否成功 |
方法名称:UpdateBizObjectAcl(OThinker.H3.Acl.BizObjectAcl)
方法说明 | 更新权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
Acl | OThinker.H3.Acl.BizObjectAcl | 数据模型权限对象 |
返回值 |
方法名称:RemoveBizObjectAcl(System.String,System.String,System.String)
方法说明 | 删除数据项模型权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
FolderId | System.String | 文件夹ID |
AclID | System.String | 权限ID |
返回值 | 无 |
方法名称:RemoveBizObjectAcls(System.String,System.String,System.String[])
方法说明 | 删除数据项模型权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
FolderId | System.String | 文件夹ID |
AclIDs | System.String[] | 权限ID集合 |
返回值 | 无 |
方法名称:GetBizObjectAcls(System.String,System.String)
方法说明 | 根据数据模型编码、文件夹获取权限信息 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
FolderId | System.String | 文件夹ID |
返回值 | 返回权限对象的集合 |
方法名称:GetBizObjectAcl(System.String,System.String,System.String)
方法说明 | 根据模型编码、文件夹、ID获取业务权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
FolderId | System.String | 文件夹ID |
AclId | System.String | 权限ID |
返回值 | 返回业务权限对象 |
方法名称:GetBizObjectUserAcls(System.String,System.String,System.String[])
方法说明 | 根据数据模型编码、文件夹、用户获取权限信息 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
FolderId | System.String | 文件夹ID |
Users | System.String[] | 用户集合 |
返回值 | 返回权限对象的集合 |
方法名称:CheckSchemaCodeDuplicated(System.String,System.String@)
方法说明 | 检测数据模型编码是否重复 | |
输入参数 | ||
名称 | 类型 | 说明 |
SchemaCode | System.String | 数据模型编码 |
Message | System.String@ | 返回的错误信息 |
返回值 | 重复返回false,没重复返回true |