public DecisionsFramework.Design.Flow.FlowStep ConvertStep(ConversionData allConvertData, ConvertedStep stepToConvert) { SystemUserContext suc = new SystemUserContext(); using (UserContextHolder.Register(suc)) { LinkedFlowStep lfs = new LinkedFlowStep(); // Get name of flow to run / id of flow to run. StepInput flowId = stepToConvert.StepProperties.FirstOrDefault(x => x.Name == "EmbeddedFlowId"); //string flowId = flowName.ConstantValue; //foreach (Flow cf in allConvertData.ConvertedFlows) //{ // if (cf.Name == flowName.ConstantValue) // { // flowId = cf.Id; // } //} lfs.RegistrationId = flowId.ConstantValue; return(new FlowStep(lfs)); } }
//This method is called when the module is initialized public void Initialize() { //Create the Base Flow Folder which will take on the implemented behavior if it doesn't already exist //This folder will be added for everyone SystemUserContext suc = new SystemUserContext(); if (FolderService.Instance.Exists(suc, FLOW_PERFORMANCE_TESTS_FOLDER) == false) { //Create the folder at the root FolderService.Instance.CreateRootFolder(suc, FLOW_PERFORMANCE_TESTS_FOLDER, "Flow Performance Tests", typeof(RunFlowFolderBehavior).FullName); } }
public void BatchRun(string flowId, int executions, int numberOfThreads) { AbstractUserContext UC = new SystemUserContext(); string utname = UnitTest.GetEntityById(flowId).EntityName; RunUnitTestBatch runUnitTestBatch = new RunUnitTestBatch(); _Mapper mapper = new _Mapper() { executions = executions, numberOfThreads = numberOfThreads, flowId = flowId, UnitTestName = utname }; runUnitTestBatch.RunTest(UC, mapper); }
private void SetupLoanRulesFolder() { SystemUserContext s = new SystemUserContext(); // Check to see if it exists. if (FolderService.Instance.Exists(s, LOAN_RULES_FOLDER_ID) == false) { // Create it with behavior. FolderService.Instance.CreateRootFolder( s, LOAN_RULES_FOLDER_ID, "Loan Rules", typeof(LoanRuleBehavior).FullName ); } }
private void SetupApplicantFlowAndRulesFolder() { SystemUserContext s = new SystemUserContext(); // Check to see if it exists. if (FolderService.Instance.Exists(s, APPLICANT_RULES_FOLDER_ID) == false) { // Create it with behavior. FolderService.Instance.CreateRootFolder( s, APPLICANT_RULES_FOLDER_ID, "Applicant Processing", typeof(ApplicantRuleBehavior).FullName ); } }
//This method is called when the module is initialized public void Initialize() { //Create the Base Flow Folder which will take on the implemented behavior if it doesn't already exist //This folder will be added for everyone SystemUserContext suc = new SystemUserContext(); if (FolderService.Instance.Exists(suc, RESTRICTED_STEPS_FOLDER_EXAMPLE) == false) { //Create the folder at the root FolderService.Instance.CreateRootFolder(suc, RESTRICTED_STEPS_FOLDER_EXAMPLE, "Restricted Flow Steps", typeof(RestrictedStepsFolderBehavior).FullName); //Add all Permissions besides ADMIN for the DESIGNERS group so DESIGNERS can create flows in this folder. //IF we want to always ensure this permission we would move it OUT of this if block. FolderService.Instance.AddGroupPermission(UserContextHolder.GetCurrent(), RESTRICTED_STEPS_FOLDER_EXAMPLE, Constants.DESIGNERS_GROUP_ID, FolderPermission.AllButAdmin); } //Example Call to REMOVE the created folder //FolderService.Instance.DeleteFolder(suc, RESTRICTED_STEPS_FOLDER_EXAMPLE, false); }