public IList GetTaskList(String authenticatedActorId, String actorId, Relations relations, DbSession dbSession, IOrganisationSessionLocal organisationComponent) { IList tasks = null; IActor actor = organisationComponent.FindActorById(actorId); if (actor is IUser) { log.Debug("getting task lists for actor --> User : [" + actor + "]"); tasks = GetActorTaskList(actorId, dbSession); } else if (actor is IGroup) { log.Debug("getting task lists for actor --> Group : [" + actor + "]"); tasks = GetGroupTaskList(authenticatedActorId, null, actorId, dbSession, organisationComponent); } if (relations != null) { relations.Resolve(tasks); } return tasks; }
public TestAssignmentContext(ActorExpressionTest enclosingInstance,IOrganisationSessionLocal organisationComponent) { orgComponent = organisationComponent; InitBlock(enclosingInstance); this.previousActor = organisationComponent.FindActorById("ae"); this.processInstance = new ProcessInstanceImpl(); this.processInstance.InitiatorActorId = "pf"; this.configuration = new Hashtable(); this.attributes = new Hashtable(); this.attributes["boss"] = organisationComponent.FindActorById("cg"); this.attributes["requester group"] = organisationComponent.FindGroupById("group-rd"); }