C# Class Slickflow.Engine.Business.Manager.ActivityInstanceManager

活动实例管理类
Inheritance: Slickflow.Data.ManagerBase
Show file Open project: uname-yang/WorkFlow-Engine-OData-WebApi-with-OdataClient Class Usage Examples

Private Methods

Method Description
ActivityInstanceManager ( ) : System
Complete ( int activityInstanceID, Slickflow.Engine.Common.WfAppRunner runner, IDbSession session ) : void

活动实例完成

CreateActivityInstanceObject ( ActivityInstanceEntity main ) : ActivityInstanceEntity

根据主节点复制子节点

CreateActivityInstanceObject ( string appName, string appInstanceID, int processInstanceID, ActivityEntity activity, Slickflow.Engine.Common.WfAppRunner runner ) : ActivityInstanceEntity

创建活动实例的对象

CreateBackwardActivityInstanceObject ( string appName, string appInstanceID, int processInstanceID, ActivityEntity activity, BackwardTypeEnum backwardType, int backSrcActivityInstanceID, Slickflow.Engine.Common.WfAppRunner runner ) : ActivityInstanceEntity

创建活动实例的对象

Delete ( int activityInstanceID, IDbSession session = null ) : void

删除活动实例

GetActivityByState ( int processInstanceID, string activityGUID, ActivityStateEnum activityState, IDbSession session ) : ActivityInstanceEntity

根据状态获取活动实例

GetActivityCompleted ( int processInstanceID, string activityGUID ) : ActivityInstanceEntity

获取完成状态的活动实例

GetActivityInstance ( int appInstanceID, string processGUID, string activityGUID ) : IList

获取活动节点实例

GetActivityInstances ( int processInstanceID, IDbSession session ) : IList

获取活动节点实例

GetActivityMulitipleInstanceWithState ( int mainActivityInstanceID, int processInstanceID, short activityState, IDbSession session ) : List

获取会签节点的多实例节点

GetActivityRunning ( int processInstanceID, string activityGUID, IDbSession session ) : ActivityInstanceEntity

获取运行状态的活动实例

GetById ( IDbConnection conn, int activityInstanceID, IDbTransaction trans ) : ActivityInstanceEntity

根据ID获取活动实例

GetById ( int activityInstanceID ) : ActivityInstanceEntity

根据ID获取活动实例

GetByTask ( int taskID, IDbSession session ) : ActivityInstanceEntity

由任务ID获取活动实例信息

GetCompletedActivityInstanceList ( string appInstanceID, string processGUID ) : List

获取已经运行完成的节点

GetPreviousOfMultipleInstanceNode ( int mainActivityInstanceID, int activityInstanceID, float completeOrder ) : ActivityInstanceEntity

查询实例节点的前置节点

GetRunningActivityInstanceList ( Slickflow.Engine.Common.WfAppRunner runner ) : IEnumerable

获取流程实例中运行的活动节点

GetRunningNode ( Slickflow.Engine.Common.WfAppRunner runner ) : ActivityInstanceEntity

获取流程当前运行节点信息

GetRunningNode ( Slickflow.Engine.Common.WfAppRunner runner, TaskViewEntity &taskView ) : ActivityInstanceEntity

获取流程当前运行节点信息

IncreaseTokensHad ( int activityInstanceID, Slickflow.Engine.Common.WfAppRunner runner, IDbSession session ) : void

更新活动节点的Token数目

Insert ( ActivityInstanceEntity entity, IDbSession session ) : int
IsAssignedUserInActivityInstance ( ActivityInstanceEntity entity, int userID ) : bool

判断用户是否是分配下来任务的用户

IsMineTask ( ActivityInstanceEntity entity, string userID ) : bool

判断是否是某个用户的办理任务

SendBack ( int activityInstanceID, Slickflow.Engine.Common.WfAppRunner runner, IDbSession session ) : void

退回活动实例

SetActivityRead ( int activityInstanceID, string userID, string userName, IDbSession session ) : void

活动实例被读取

SetActivityState ( int activityInstanceID, ActivityStateEnum nodeState, string userID, string userName, IDbSession session ) : void

设置活动实例状态

Update ( ActivityInstanceEntity entity, IDbSession session ) : void
Withdraw ( int activityInstanceID, Slickflow.Engine.Common.WfAppRunner runner, IDbSession session ) : void

撤销活动实例