OThinker.H3.Instance.IInstanceManager
类:OThinker.H3.Instance.IInstanceManager
说明:
流程实例管理器
方法:.CreateInstance(System.String,System.String,System.Int32,System.String,System.String,System.String,System.String,System.Boolean,System.String,System.String,System.Int32)
方法说明:
创建一个流程实例
名称 | 说明 |
BizObjectId | 业务对象的ID |
WorkflowCode | 流程模板编码 |
WorkflowVersion | 流程版本号 |
InstanceId | 流程实例的ID,如果为空则由Engine自动生成一个 |
InstanceName | 流程实例的名称 |
Originator | 发起人 |
OriginatedJob | 以哪个角色发起流程 |
IsChildInstance | 是否是子实例 |
ParentInstanceID | 如果是子实例,则该项为父实例的ID |
ParentActivityName | 如果是子实例,则该项为发起该实例的父实例的Activity的ID |
ParentActivityTokenId | 如果是子实例,则该项为发起该实例的父实例的TokenID |
返回值:
如果创建成功则返回实例的ID,否则返回NullInstanceID
方法:.CreateInstanceByDefault(System.String,System.String,System.String,System.String)
方法说明:
创建流程实例
名称 | 说明 |
BizObjectId | 数据实例ID |
WorkflowCode | 流程模板编码 |
InstanceName | 流程实例名称 |
Originator | 发起人 |
返回值:
方法:.GetInstanceContext(System.String)
方法说明:
获得一个实例的状态
名称 | 说明 |
InstanceId | 流程实例的ID |
返回值:
流程实例的上下文
方法:.GetInstanceContextsByBizObject(System.String,System.String)
方法说明:
根据BizObjectID获取流程实例集合
名称 | 说明 |
SchemaCode | 数据模型编码 |
BizObjectId | 业务实例ID |
返回值:
返回当前数据所有绑定的流程实例的集合
方法:.GetParentInstanceInfo(System.String)
方法说明:
获得父流程的工作流信息
名称 | 说明 |
InstanceId | 流程实例的ID |
返回值:
父流程实例信息
方法:.SendMessages(OThinker.H3.Messages.Message[])
方法说明:
发送消息给流程实例,以驱动流程实例的运行
名称 | 说明 |
Messages | 发送给流程实例的消息 |
方法:.SendMessage(OThinker.H3.Messages.Message)
方法说明:
发送消息给流程实例,以驱动流程实例的运行
名称 | 说明 |
Message | 发送给流程实例的消息 |
方法:.SetInstanceName(System.String,System.String)
方法说明:
设置流程实例显示名称
名称 | 说明 |
InstanceId | 流程实例ID |
InstanceName | 流程实例名称 |
返回值:
方法:.SetInstancePriority(System.String,OThinker.H3.Instance.PriorityType)
方法说明:
设置流程实例紧急程度
名称 | 说明 |
InstanceId | 流程实例ID |
Priority | 紧急程度 |
返回值:
方法:.IncNextInstanceSeqID(System.String)
方法说明:
增加一个流水号,并返回一个新的流水号
名称 | 说明 |
WorkflowCode | 流程模板编码 |
返回值:
新的流程实例的流水号
方法:.ResetSeqNo(System.DateTime)
方法说明:
重置流水号,该方法只能每天被调用一次,且最多只能被调用一次。该方法只能由Engine的定时器调用,不能被外部系统调用。
名称 | 说明 |
Now | 当前时间 |
方法:.RemoveInstance(System.String,System.Boolean)
方法说明:
删除流程实例
名称 | 说明 |
InstanceId | 要删除的流程实例的ID |
AutoUpdateBizObject | 删除之后,是否需要更新BO.RunningInstanceId字段 |
方法:.ReloadInstance(System.String)
方法说明:
重新加载流程实例(清除系统缓存)
名称 | 说明 |
InstanceId | 待清除的流程实例ID |