Method | Description | |
---|---|---|
AbortProcessInstance ( IProcessInstance processInstance ) : bool |
终止流程实例。将流程实例、活动的TaskInstance、活动的WorkItem的状态设置为CANCELED;并删除所有的token
|
|
AbortTaskInstance ( ITaskInstance taskInstance ) : bool |
终止TaskInstance。将任务实例及其所有的“活的”WorkItem变成Canceled状态。 "活的"WorkItem 是指状态等于INITIALIZED、STARTED或者SUSPENDED的WorkItem.
|
|
DeleteToken ( IToken token ) : bool |
删除token
|
|
DeleteTokensForNode ( String processInstanceId, String nodeId ) : bool |
删除某个节点的所有token
|
|
DeleteTokensForNodes ( String processInstanceId, IList |
删除某些节点的所有token
|
|
DeleteWorkItemsInInitializedState ( String taskInstanceId ) : bool |
删除处于初始化状态的workitem。 此方法用于签收Workitem时,删除其他Actor的WorkItem
|
|
FindAliveProcessInstanceById ( String id ) : IProcessInstance |
通过ID获得“活的”ProcessInstance对象。 “活的”是指ProcessInstance.state=INITIALIZED Or ProcessInstance.state=STARTED Or ProcessInstance=SUSPENDED的流程实例
|
|
FindAliveTaskInstanceById ( String id ) : ITaskInstance |
返回“活的”TaskInstance。 “活的”是指TaskInstance.state=INITIALIZED Or TaskInstance.state=STARTED 。
|
|
FindAllTheLatestVersionsOfWorkflowDefinition ( ) : IList |
Find all of the latest version of workflow definitions. 返回系统中所有的最新版本的有效流程定义
|
|
FindCompletedWorkItemsForTaskInstance ( String taskInstanceId ) : IList |
查询任务实例的所有"已经结束"WorkItem。 所以必须有关联条件WorkItem.state=IWorkItem.COMPLTED
|
|
FindHaveDoneWorkItems ( String actorId ) : IList |
根据操作员的Id返回其已办工单。如果actorId==null,则返回系统所有的已办任务 已办工单是指状态等于COMPLETED或CANCELED的工单 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindHaveDoneWorkItems ( String actorId, String processInstanceId ) : IList |
查找操作员在某个流程实例中的已办工单。 如果processInstanceId为空,则等价于调用findHaveDoneWorkItems(String actorId) 已办工单是指状态等于COMPLETED或CANCELED的工单 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindHaveDoneWorkItems ( String actorId, String processId, String taskId ) : IList |
查找操作员在某个流程某个任务上的已办工单。 actorId,processId,taskId都可以为空(null或者""),为空的条件将被忽略 已办工单是指状态等于COMPLETED或CANCELED的工单 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindHaveDoneWorkItems ( String actorId, String publishUser, int pageSize, int pageNumber ) : IList |
获得操作员完成的工单列表(分页) publishUser如果为null,获取全部
|
|
FindProcessInstanceById ( String id ) : IProcessInstance |
通过ID获得ProcessInstance对象。 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindProcessInstanceListByCreatorId ( String creatorId, String publishUser, int pageSize, int pageNumber ) : IList |
获得操作员发起的工作流实例列表(运行中)(分页) publishUser如果为null,获取全部
|
|
FindProcessInstanceListByPublishUser ( String publishUser, int pageSize, int pageNumber ) : IList |
获得工作流发布者发起的所有流程定义的工作流实例列表(分页)
|
|
FindProcessInstanceTraces ( String processInstanceId ) : IList |
根据流程实例ID查找流程实例运行轨迹
|
|
FindProcessInstanceVariable ( string processInstanceId ) : IList |
||
FindProcessInstanceVariable ( string processInstanceId, string name ) : IProcessInstanceVar | ||
FindProcessInstancesByProcessId ( String processId ) : IList |
查找并返回同一个业务流程的所有实例 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindProcessInstancesByProcessIdAndVersion ( String processId, int version ) : IList |
查找并返回同一个指定版本业务流程的所有实例 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTaskInstanceById ( String id ) : ITaskInstance |
Find the task instance by id (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTaskInstancesForProcessInstance ( String processInstanceId, String activityId ) : IList |
查询流程实例的所有的TaskInstance,如果activityId不为空,则返回该流程实例下指定环节的TaskInstance (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTaskInstancesForProcessInstanceByStepNumber ( String processInstanceId, |
查询出同一个stepNumber的所有TaskInstance实例
|
|
FindTheLatestVersionNumber ( String processId ) : int |
Find the latest version number 返回最新的有效版本号
|
|
FindTheLatestVersionNumberIgnoreState ( String processId ) : int |
返回最新版本号,
|
|
FindTheLatestVersionOfWorkflowDefinitionByProcessId ( String processId ) : IWorkflowDefinition |
Find the latest version of the workflow definition. 根据processId返回最新版本的有效流程定义
|
|
FindTodoWorkItems ( String actorId ) : IList |
根据操作员的Id返回其待办工单。如果actorId==null,则返回系统所有的待办任务 待办工单是指状态等于INITIALIZED或STARTED工单 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTodoWorkItems ( String actorId, String processInstanceId ) : IList |
查找操作员在某个流程实例中的待办工单。 如果processInstanceId为空,则等价于调用findTodoWorkItems(String actorId) 待办工单是指状态等于INITIALIZED或STARTED工单 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTodoWorkItems ( String actorId, String processId, String taskId ) : IList |
查找操作员在某个流程某个任务上的待办工单。 actorId,processId,taskId都可以为空(null或者""),为空的条件将被忽略 待办工单是指状态等于INITIALIZED或STARTED工单 (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTodoWorkItems ( String actorId, String publishUser, int pageSize, int pageNumber ) : IList |
获得操作员所要操作工单列表(分页) publishUser如果为null,获取全部
|
|
FindTokenById ( String id ) : IToken |
(Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindTokensForProcessInstance ( String processInstanceId, String nodeId ) : IList |
Find all the tokens for process instance ,and the nodeId of the token must equals to the second argument.
|
|
FindWorkItemById ( String id ) : IWorkItem |
Find workItem by id (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindWorkItemsForTask ( String taskid ) : IList |
Find all workitems for task (Engine没有引用到该方法,提供给业务系统使用,20090303)
|
|
FindWorkItemsForTaskInstance ( String taskInstanceId ) : IList |
查询某任务实例的所有WorkItem
|
|
FindWorkflowDefinitionById ( String id ) : IWorkflowDefinition |
Find the workflow definition by id . 根据纪录的ID返回流程定义
|
|
FindWorkflowDefinitionByProcessIdAndVersionNumber ( String processId, int version ) : IWorkflowDefinition |
Find workflow definition by workflow process id and version
|
|
FindWorkflowDefinitionsByProcessId ( String processId ) : IList |
Find all the workflow definitions for the workflow process id. 根据ProcessId 返回所有版本的流程定义
|
|
GetAliveProcessInstanceCountForParentTaskInstance ( String taskInstanceId ) : int |
计算活动的子流程实例的数量
|
|
GetAliveTaskInstanceCountForActivity ( String processInstanceId, String activityId ) : int |
获得activity的“活的”TaskInstance的数量 “活的”是指TaskInstance.state=INITIALIZED Or TaskInstance.state=STARTED 。
|
|
GetAliveTokenCountForNode ( String processInstanceId, String nodeId ) : int |
统计流程任意节点的活动Token的数量。对于Activity节点,该数量只能取值1或者0,大于1表明有流程实例出现异常。
|
|
GetAliveWorkItemCountForTaskInstance ( String taskInstanceId ) : |
返回任务实例的所有"活的"WorkItem的数量。 "活的"WorkItem 是指状态等于INITIALIZED、STARTED或者SUSPENDED的WorkItem。
|
|
GetCompletedTaskInstanceCountForTask ( String processInstanceId, String taskId ) : int |
返回某个Task已经结束的TaskInstance的数量 “已经结束”是指TaskInstance.state=COMPLETED。
|
|
GetHaveDoneWorkItemsCount ( String actorId, String publishUser ) : |
获得操作员完成的工单总数量 publishUser如果为null,获取全部
|
|
GetProcessInstanceCountByCreatorId ( String creatorId, String publishUser ) : |
获得操作员发起的工作流实例总数量 publishUser如果为null,获取全部
|
|
GetProcessInstanceCountByPublishUser ( String publishUser ) : |
获得工作流发布者发起的所有流程定义的工作流实例总数量
|
|
GetTodoWorkItemsCount ( String actorId, String publishUser ) : |
获得操作员所要操作工单的总数量 publishUser如果为null,获取全部
|
|
LockTaskInstance ( String taskInstanceId ) : bool |
调用数据库自身的机制所定TaskInstance实例。 该方法主要用于工单的签收操作,在签收之前先锁定与之对应的TaskInstance。
|
|
PersistenceServiceDAL ( ) : System | ||
PersistenceServiceDAL ( String connName ) : System | ||
RestoreProcessInstance ( IProcessInstance processInstance ) : bool |
恢复流程实例
|
|
SaveOrUpdateProcessInstance ( IProcessInstance processInstance ) : bool |
插入或者更新ProcessInstance流程实例
|
|
SaveOrUpdateProcessInstanceTrace ( IProcessInstanceTrace processInstanceTrace ) : bool | ||
SaveOrUpdateTaskInstance ( ITaskInstance taskInstance ) : bool |
插入或者更新TaskInstance。 Save or update task instance. If the taskInstance.id is null then insert a new task instance record and generate a new id for it { throw new NotImplementedException(); } otherwise update the existent one.
|
|
SaveOrUpdateToken ( IToken token ) : bool | ||
SaveOrUpdateWorkItem ( IWorkItem workitem ) : bool |
插入或者更新WorkItem
|
|
SaveOrUpdateWorkflowDefinition ( IWorkflowDefinition workflowDef ) : bool |
Save or update the workflow definition. The version will be increased automatically when insert a new record. 保存流程定义,如果同一个ProcessId的流程定义已经存在,则版本号自动加1。
|
|
SaveProcessInstance ( IProcessInstance processInstance ) : bool |
插入或者更新ProcessInstance流程实例
|
|
SaveProcessInstanceVariable ( IProcessInstanceVar var ) : bool | ||
SuspendProcessInstance ( IProcessInstance processInstance ) : bool |
挂起流程实例
|
|
UpdateProcessInstanceVariable ( IProcessInstanceVar var ) : bool | ||
setRuntimeContext ( FireWorkflow.Net.Engine.RuntimeContext ctx ) : void |
public AbortProcessInstance ( IProcessInstance processInstance ) : bool | ||
processInstance | IProcessInstance | |
return | bool |
public AbortTaskInstance ( ITaskInstance taskInstance ) : bool | ||
taskInstance | ITaskInstance | |
return | bool |
public DeleteTokensForNode ( String processInstanceId, String nodeId ) : bool | ||
processInstanceId | String | |
nodeId | String | |
return | bool |
public DeleteTokensForNodes ( String processInstanceId, IList |
||
processInstanceId | String | |
nodeIdsList | IList |
|
return | bool |
public DeleteWorkItemsInInitializedState ( String taskInstanceId ) : bool | ||
taskInstanceId | String | |
return | bool |
public FindAliveProcessInstanceById ( String id ) : IProcessInstance | ||
id | String | |
return | IProcessInstance |
public FindAliveTaskInstanceById ( String id ) : ITaskInstance | ||
id | String | |
return | ITaskInstance |
public FindAllTheLatestVersionsOfWorkflowDefinition ( ) : IList |
||
return | IList |
public FindCompletedWorkItemsForTaskInstance ( String taskInstanceId ) : IList |
||
taskInstanceId | String | 任务实例Id |
return | IList |
public FindHaveDoneWorkItems ( String actorId ) : IList |
||
actorId | String | |
return | IList |
public FindHaveDoneWorkItems ( String actorId, String processInstanceId ) : IList |
||
actorId | String | |
processInstanceId | String | |
return | IList |
public FindHaveDoneWorkItems ( String actorId, String processId, String taskId ) : IList |
||
actorId | String | |
processId | String | |
taskId | String | |
return | IList |
public FindHaveDoneWorkItems ( String actorId, String publishUser, int pageSize, int pageNumber ) : IList |
||
actorId | String | 操作员主键 |
publishUser | String | 流程定义发布者 |
pageSize | int | 每页显示的条数 |
pageNumber | int | 当前页数 |
return | IList |
public FindProcessInstanceById ( String id ) : IProcessInstance | ||
id | String | |
return | IProcessInstance |
public FindProcessInstanceListByCreatorId ( String creatorId, String publishUser, int pageSize, int pageNumber ) : IList |
||
creatorId | String | 操作员主键 |
publishUser | String | 流程定义发布者 |
pageSize | int | 每页显示的条数 |
pageNumber | int | 当前页数 |
return | IList |
public FindProcessInstanceListByPublishUser ( String publishUser, int pageSize, int pageNumber ) : IList |
||
publishUser | String | 工作流发布者 |
pageSize | int | 每页显示的条数 |
pageNumber | int | 当前页数 |
return | IList |
public FindProcessInstanceTraces ( String processInstanceId ) : IList |
||
processInstanceId | String | 流程实例ID |
return | IList |
public FindProcessInstanceVariable ( string processInstanceId ) : IList |
||
processInstanceId | string | |
return | IList |
public FindProcessInstanceVariable ( string processInstanceId, string name ) : IProcessInstanceVar | ||
processInstanceId | string | |
name | string | |
return | IProcessInstanceVar |
public FindProcessInstancesByProcessId ( String processId ) : IList |
||
processId | String | The id of the process definition. |
return | IList |
public FindProcessInstancesByProcessIdAndVersion ( String processId, int version ) : IList |
||
processId | String | The id of the process definition. |
version | int | 版本号 |
return | IList |
public FindTaskInstanceById ( String id ) : ITaskInstance | ||
id | String | |
return | ITaskInstance |
public FindTaskInstancesForProcessInstance ( String processInstanceId, String activityId ) : IList |
||
processInstanceId | String | |
activityId | String | |
return | IList |
public FindTaskInstancesForProcessInstanceByStepNumber ( String processInstanceId, |
||
processInstanceId | String | |
stepNumber | ||
return | IList |
public FindTheLatestVersionNumber ( String processId ) : int | ||
processId | String | |
return | int |
public FindTheLatestVersionNumberIgnoreState ( String processId ) : int | ||
processId | String | |
return | int |
public FindTheLatestVersionOfWorkflowDefinitionByProcessId ( String processId ) : IWorkflowDefinition | ||
processId | String | the workflow process id |
return | IWorkflowDefinition |
public FindTodoWorkItems ( String actorId ) : IList |
||
actorId | String | |
return | IList |
public FindTodoWorkItems ( String actorId, String processInstanceId ) : IList |
||
actorId | String | |
processInstanceId | String | |
return | IList |
public FindTodoWorkItems ( String actorId, String processId, String taskId ) : IList |
||
actorId | String | |
processId | String | |
taskId | String | |
return | IList |
public FindTodoWorkItems ( String actorId, String publishUser, int pageSize, int pageNumber ) : IList |
||
actorId | String | 操作员主键 |
publishUser | String | 流程定义发布者 |
pageSize | int | 每页显示的条数 |
pageNumber | int | 当前页数 |
return | IList |
public FindTokensForProcessInstance ( String processInstanceId, String nodeId ) : IList |
||
processInstanceId | String | the id of the process instance |
nodeId | String | if the nodeId is null ,then return all the tokens of the process instance. |
return | IList |
public FindWorkItemById ( String id ) : IWorkItem | ||
id | String | |
return | IWorkItem |
public FindWorkItemsForTask ( String taskid ) : IList |
||
taskid | String | |
return | IList |
public FindWorkItemsForTaskInstance ( String taskInstanceId ) : IList |
||
taskInstanceId | String | |
return | IList |
public FindWorkflowDefinitionById ( String id ) : IWorkflowDefinition | ||
id | String | |
return | IWorkflowDefinition |
public FindWorkflowDefinitionByProcessIdAndVersionNumber ( String processId, int version ) : IWorkflowDefinition | ||
processId | String | |
version | int | |
return | IWorkflowDefinition |
public FindWorkflowDefinitionsByProcessId ( String processId ) : IList |
||
processId | String | |
return | IList |
public GetAliveProcessInstanceCountForParentTaskInstance ( String taskInstanceId ) : int | ||
taskInstanceId | String | 父TaskInstance的Id |
return | int |
public GetAliveTaskInstanceCountForActivity ( String processInstanceId, String activityId ) : int | ||
processInstanceId | String | |
activityId | String | |
return | int |
public GetAliveTokenCountForNode ( String processInstanceId, String nodeId ) : int | ||
processInstanceId | String | |
nodeId | String | |
return | int |
public GetAliveWorkItemCountForTaskInstance ( String taskInstanceId ) : |
||
taskInstanceId | String | |
return |
public GetCompletedTaskInstanceCountForTask ( String processInstanceId, String taskId ) : int | ||
processInstanceId | String | |
taskId | String | |
return | int |
public GetHaveDoneWorkItemsCount ( String actorId, String publishUser ) : |
||
actorId | String | 操作员主键 |
publishUser | String | 流程定义发布者 |
return |
public GetProcessInstanceCountByCreatorId ( String creatorId, String publishUser ) : |
||
creatorId | String | 操作员主键 |
publishUser | String | 流程定义发布者 |
return |
public GetProcessInstanceCountByPublishUser ( String publishUser ) : |
||
publishUser | String | 工作流发布者 |
return |
public GetTodoWorkItemsCount ( String actorId, String publishUser ) : |
||
actorId | String | 操作员主键 |
publishUser | String | 流程定义发布者 |
return |
public LockTaskInstance ( String taskInstanceId ) : bool | ||
taskInstanceId | String | |
return | bool |
public PersistenceServiceDAL ( String connName ) : System | ||
connName | String | |
return | System |
public RestoreProcessInstance ( IProcessInstance processInstance ) : bool | ||
processInstance | IProcessInstance | |
return | bool |
public SaveOrUpdateProcessInstance ( IProcessInstance processInstance ) : bool | ||
processInstance | IProcessInstance | |
return | bool |
public SaveOrUpdateProcessInstanceTrace ( IProcessInstanceTrace processInstanceTrace ) : bool | ||
processInstanceTrace | IProcessInstanceTrace | |
return | bool |
public SaveOrUpdateTaskInstance ( ITaskInstance taskInstance ) : bool | ||
taskInstance | ITaskInstance | |
return | bool |
public SaveOrUpdateToken ( IToken token ) : bool | ||
token | IToken | |
return | bool |
public SaveOrUpdateWorkItem ( IWorkItem workitem ) : bool | ||
workitem | IWorkItem | |
return | bool |
public SaveOrUpdateWorkflowDefinition ( IWorkflowDefinition workflowDef ) : bool | ||
workflowDef | IWorkflowDefinition | |
return | bool |
public SaveProcessInstance ( IProcessInstance processInstance ) : bool | ||
processInstance | IProcessInstance | |
return | bool |
public SaveProcessInstanceVariable ( IProcessInstanceVar var ) : bool | ||
var | IProcessInstanceVar | |
return | bool |
public SuspendProcessInstance ( IProcessInstance processInstance ) : bool | ||
processInstance | IProcessInstance | |
return | bool |
public UpdateProcessInstanceVariable ( IProcessInstanceVar var ) : bool | ||
var | IProcessInstanceVar | |
return | bool |
public setRuntimeContext ( FireWorkflow.Net.Engine.RuntimeContext ctx ) : void | ||
ctx | FireWorkflow.Net.Engine.RuntimeContext | |
return | void |