protected virtual ProcessSchemaUserTask CreateOpenLicPageUserTask() { ProcessSchemaUserTask schemaTask = new ProcessSchemaUserTask(this) { UId = new Guid("29165a53-d86a-4982-8f19-7575c83caf88"), ContainerItemIndex = 0, ContainerUId = new Guid("1f4504db-094e-46fb-a452-fbf812a5ae29"), CreatedInOwnerSchemaUId = new Guid("bb4d6607-026b-4b27-b640-8f5c77c1e89d"), CreatedInPackageId = new Guid("c692daa9-de5e-4e96-afd3-e992ed86681c"), CreatedInSchemaUId = new Guid("392a9914-bc8c-447b-a2d2-638cbd9c0b1e"), DragGroupName = @"Task", EntitySchemaUId = Guid.Empty, FillColor = Color.FromArgb(-1), IsForCompensation = false, IsLogging = true, ManagerItemUId = new Guid("1418e61a-82c3-403e-8221-01088f52c125"), ModifiedInSchemaUId = new Guid("392a9914-bc8c-447b-a2d2-638cbd9c0b1e"), Name = @"OpenLicPage", Position = new Point(232, 58), SchemaUId = new Guid("b7042ef4-f468-443e-b3ea-39ebbda1c828"), SerializeToDB = false, Size = new Size(69, 55), TaskSchemaManagerName = @"ProcessUserTaskSchemaManager", ZipAfterActivitySaveScript = new byte[] { } }; InitializeOpenLicPageParameters(schemaTask); return(schemaTask); }
protected override void InitializeBaseElements() { base.InitializeBaseElements(); ProcessSchemaLaneSet schemaLaneSet51 = CreateLaneSet51LaneSet(); LaneSets.Add(schemaLaneSet51); ProcessSchemaLane schemaLane151 = CreateLane151Lane(); schemaLaneSet51.Lanes.Add(schemaLane151); ProcessSchemaStartEvent start1 = CreateStart1StartEvent(); FlowElements.Add(start1); ProcessSchemaScriptTask scriptsyssettingsopen = CreateScriptSysSettingsOpenScriptTask(); FlowElements.Add(scriptsyssettingsopen); ProcessSchemaUserTask syssettingsopenusertask = CreateSysSettingsOpenUserTaskUserTask(); FlowElements.Add(syssettingsopenusertask); ProcessSchemaEndEvent end1 = CreateEnd1EndEvent(); FlowElements.Add(end1); FlowElements.Add(CreateSequenceFlow478SequenceFlow()); FlowElements.Add(CreateSequenceFlow479SequenceFlow()); FlowElements.Add(CreateSequenceFlow480SequenceFlow()); }
protected override void InitializeBaseElements() { base.InitializeBaseElements(); ProcessSchemaLaneSet schemaLaneSet33 = CreateLaneSet33LaneSet(); LaneSets.Add(schemaLaneSet33); ProcessSchemaLane schemaLane98 = CreateLane98Lane(); schemaLaneSet33.Lanes.Add(schemaLane98); ProcessSchemaStartEvent start1 = CreateStart1StartEvent(); FlowElements.Add(start1); ProcessSchemaUserTask openlicpage = CreateOpenLicPageUserTask(); FlowElements.Add(openlicpage); ProcessSchemaEndEvent end1 = CreateEnd1EndEvent(); FlowElements.Add(end1); ProcessSchemaScriptTask scriptprepareopenpage = CreateScriptPrepareOpenPageScriptTask(); FlowElements.Add(scriptprepareopenpage); FlowElements.Add(CreateSequenceFlow339SequenceFlow()); FlowElements.Add(CreateSequenceFlow340SequenceFlow()); FlowElements.Add(CreateSequenceFlow341SequenceFlow()); }
protected virtual ProcessSchemaUserTask CreateSysSettingsOpenUserTaskUserTask() { ProcessSchemaUserTask schemaTask = new ProcessSchemaUserTask(this) { UId = new Guid("d5ed6d4e-5255-4e08-a8cc-9ad7f9f524b1"), ContainerItemIndex = 0, ContainerUId = new Guid("37a987eb-1e41-4e8b-b1c0-2dc19283d20e"), CreatedInOwnerSchemaUId = new Guid("bb4d6607-026b-4b27-b640-8f5c77c1e89d"), CreatedInPackageId = new Guid("c692daa9-de5e-4e96-afd3-e992ed86681c"), CreatedInSchemaUId = new Guid("6a3d849e-9b80-497e-a1ea-8ee043d23c33"), DragGroupName = @"Task", EntitySchemaUId = Guid.Empty, FillColor = Color.FromArgb(-1), IsForCompensation = false, IsLogging = true, ManagerItemUId = new Guid("1418e61a-82c3-403e-8221-01088f52c125"), ModifiedInSchemaUId = new Guid("6a3d849e-9b80-497e-a1ea-8ee043d23c33"), Name = @"SysSettingsOpenUserTask", Position = new Point(302, 65), SchemaUId = new Guid("b7042ef4-f468-443e-b3ea-39ebbda1c828"), SerializeToDB = false, Size = new Size(69, 55), TaskSchemaManagerName = @"ProcessUserTaskSchemaManager", ZipAfterActivitySaveScript = new byte[] { } }; InitializeSysSettingsOpenUserTaskParameters(schemaTask); return(schemaTask); }
protected Dictionary <string, string> GetMacrosValues(EmailTemplateUserTask userTask, IEnumerable <MacrosInfo> macrosInfoCollection) { ProcessSchemaUserTask userTaskSchema = GetProcessSchemaUserTask(userTask); var macrosValues = new Dictionary <string, string>(); var lookupParameters = new List <ProcessSchemaParameter>(); foreach (MacrosInfo macrosInfo in macrosInfoCollection) { ProcessSchemaParameter parameter = GetParameterByName(userTaskSchema, macrosInfo.Alias); if (parameter == null) { _logger.Log("Parameter for macros {0} is not found", macrosInfo.Alias); continue; } object propertyValue = GetParameterValue(userTask, parameter); if (propertyValue != null) { _logger.Log("Property value is {0}", propertyValue); macrosValues.Add(macrosInfo.Alias, propertyValue.ToString()); lookupParameters.Add(parameter); } } foreach (ProcessSchemaParameter parameter in lookupParameters) { string entityDisplayName = GetEntityPrimaryColumnDisplayName(userTask, macrosValues[parameter.Name], parameter); if (!string.IsNullOrEmpty(entityDisplayName)) { _logger.Log("Entity display value is {0}", entityDisplayName); macrosValues[parameter.Name] = entityDisplayName; } } return(macrosValues); }
protected virtual ProcessSchemaUserTask CreateSayHiToAllConnectedUsersUserTaskUserTask() { ProcessSchemaUserTask schemaTask = new ProcessSchemaUserTask(this) { UId = new Guid("8373d1ca-61b4-4119-929b-e52ef624f718"), ContainerItemIndex = 0, ContainerUId = new Guid("e1585419-9dea-4c3e-b0ac-eda4bca86b8b"), CreatedInOwnerSchemaUId = new Guid("bb4d6607-026b-4b27-b640-8f5c77c1e89d"), CreatedInPackageId = new Guid("d5227176-6716-4fb5-bba8-cc5a2de7deeb"), CreatedInSchemaUId = new Guid("b469eddc-e461-48b7-a02a-0131706ea155"), DragGroupName = @"Task", EntitySchemaUId = Guid.Empty, FillColor = Color.FromArgb(-1), IsForCompensation = false, IsLogging = false, ManagerItemUId = new Guid("1418e61a-82c3-403e-8221-01088f52c125"), ModifiedInSchemaUId = new Guid("b469eddc-e461-48b7-a02a-0131706ea155"), Name = @"SayHiToAllConnectedUsersUserTask", OwnerSchemaManagerName = @"ProcessSchemaManager", Position = new Point(232, 170), SchemaUId = new Guid("4b1606b8-26b2-466b-9135-1167317fea23"), SerializeToDB = false, Size = new Size(0, 0), TaskSchemaManagerName = @"ProcessUserTaskSchemaManager", UseBackgroundMode = false, ZipAfterActivitySaveScript = new byte[] { } }; InitializeSayHiToAllConnectedUsersUserTaskParameters(schemaTask); return(schemaTask); }
protected override void InitializeBaseElements() { base.InitializeBaseElements(); ProcessSchemaLaneSet schemaLaneSet1 = CreateLaneSet1LaneSet(); LaneSets.Add(schemaLaneSet1); ProcessSchemaLane schemaLane1 = CreateLane1Lane(); schemaLaneSet1.Lanes.Add(schemaLane1); ProcessSchemaStartEvent start1 = CreateStart1StartEvent(); FlowElements.Add(start1); ProcessSchemaEndEvent end1 = CreateEnd1EndEvent(); FlowElements.Add(end1); ProcessSchemaUserTask sayhitoallconnectedusersusertask = CreateSayHiToAllConnectedUsersUserTaskUserTask(); FlowElements.Add(sayhitoallconnectedusersusertask); FlowElements.Add(CreateSequenceFlow1SequenceFlow()); FlowElements.Add(CreateSequenceFlow2SequenceFlow()); }
public override Dictionary <Guid, string> GetResultParameterAllValues(UserConnection userConnection, ProcessSchemaUserTask schemaUserTask) { return(new Dictionary <Guid, string>()); }
public override Dictionary <Guid, string> GetResultParameterAllValues(UserConnection userConnection, ProcessSchemaUserTask schemaUserTask) { var result = new Dictionary <Guid, string>(); Select select = new Select(userConnection) .Column("VisaStatus", "Id") .Column("VisaStatus", "Name") .From("VisaStatus") .Where("VisaStatus", "IsFinal").IsEqual(Column.Const(true)) as Select; using (DBExecutor dbExecutor = userConnection.EnsureDBConnection()) { using (IDataReader dataReader = select.ExecuteReader(dbExecutor)) { while (dataReader.Read()) { Guid key = dataReader.GetColumnValue <Guid>("Id"); string value = dataReader.GetColumnValue <string>("Name"); result.Add(key, value); } } } return(result); }
public override Dictionary <Guid, string> GetResultParameterAllValues(UserConnection userConnection, ProcessSchemaUserTask schemaUserTask) { var esq = new EntitySchemaQuery(userConnection.EntitySchemaManager, "SysProcessStatus"); esq.AddAllSchemaColumns(); EntityCollection rows = esq.GetEntityCollection(userConnection); var resultParameterAllValues = new Dictionary <Guid, string>(); foreach (var row in rows) { resultParameterAllValues[row.PrimaryColumnValue] = row.PrimaryDisplayColumnValue; } return(resultParameterAllValues); }
public override void SynchronizeParameters(ProcessSchemaUserTask schemaElement) { base.SynchronizeParameters(schemaElement); }
public override Dictionary <Guid, string> GetResultParameterAllValues(UserConnection userConnection, ProcessSchemaUserTask schemaUserTask) { var conditionValues = new Dictionary <Guid, string>(); ProcessSchemaParameterValue sourceValue = schemaUserTask.Parameters.GetByName("Buttons").SourceValue; LocalizableParameterValuesList items = sourceValue.LocalizableCollectionValue; if (items == null) { items = new LocalizableParameterValuesList(); } else { items.SetupDefaultLocalizableValues("Caption", "No caption"); } foreach (var item in items) { conditionValues[new Guid(item["Id"].Value)] = item["Caption"].Value; } return(conditionValues); }
public override Dictionary <Guid, string> GetResultParameterAllValues(UserConnection userConnection, ProcessSchemaUserTask schemaUserTask) { var conditionValues = new Dictionary <Guid, string>(); var sourceValue = ((ProcessSchemaParameter)schemaUserTask.Parameters.GetByName("Buttons")).SourceValue; if (string.IsNullOrEmpty(sourceValue.Value)) { return(conditionValues); } var items = JsonConvert.DeserializeObject <List <Dictionary <string, object> > >(sourceValue.Value); foreach (Dictionary <string, object> item in items) { conditionValues.Add(new Guid(item["Id"].ToString()), item["caption"].ToString()); } return(conditionValues); }
protected virtual ProcessSchemaParameter GetParameterByName(ProcessSchemaUserTask userTaskSchema, string parameterName) { return(userTaskSchema.Parameters.FindByName(parameterName)); }