Exemple #1
0
        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);
        }
Exemple #2
0
 /// <summary>
 /// Gets the cache object associated with this Entity
 /// </summary>
 /// <returns></returns>
 public IEntityCache GetCacheObject()
 {
     return(WorkflowActionTypeCache.Get(this.Id));
 }