internal static WorkflowAction Activate(WorkflowActionType actionType, WorkflowActivity activity, RockContext rockContext) { if (actionType != null) { var actionTypeCache = WorkflowActionTypeCache.Get(actionType.Id); var action = Activate(actionTypeCache, activity, rockContext); if (action != null) { action.ActionType = actionType; } return(action); } return(null); }
/// <summary> /// Gets the cache object associated with this Entity /// </summary> /// <returns></returns> public IEntityCache GetCacheObject() { return(WorkflowActionTypeCache.Get(this.Id)); }