public void Visit(BeginModelMap beginModelMap) { DataSet = _sessionCache.GetUserSession().CreateDataSet(); _modelStack.Push(new ModelInformation { ModelType = beginModelMap.ModelType }); }
private IEnumerable <string> GetSubcaseIds(WorkflowObject workflowObject) { var clarifyDataSet = _sessionCache.GetUserSession().CreateDataSet(); var caseGeneric = clarifyDataSet.CreateGenericWithFields("case"); caseGeneric.AppendFilter("id_number", StringOps.Equals, workflowObject.Id); var subcaseGeneric = caseGeneric.TraverseWithFields("case2subcase", "id_number"); caseGeneric.Query(); return(subcaseGeneric.Count > 0 ? subcaseGeneric.DataRows().Select(s => s.AsString("id_number")) : new string[0]); }
public CreateCaseResult Execute(CreateCaseInputModel model) { var toolkit = _sessionCache.GetUserSession().CreateSupportToolkit(); var setup = new CreateCaseSetup(model.SiteId, model.ContactFirstName, model.ContactLastName, model.ContactPhone) { Title = model.Title, Queue = model.Queue, PhoneLogNotes = model.Description, Priority = model.Priority, CaseType = model.CaseType, Severity = model.IssueSeverity }; var result = toolkit.CreateCase(setup); return(new CreateCaseResult { Id = result.IDNum }); }