public SicknessCreateEventHandler(IWorkflowConfiguration config) { WorkflowConfiguration = config; //this is a 'Create' event on a 'Sickness' EventType = "Create"; ObjectType = "Sickness"; }
public WelfareCallCompletedEventHandler(IWorkflowConfiguration config) { WorkflowConfiguration = config; //this is a 'complete' event on a 'Welfare Call' EventType = "Complete"; ObjectType = "Welfare Call"; }
public DefaultSicknessWorkflow(IWorkflowConfiguration config) { WorkflowConfiguration = config; EventHandlers = new List<WorkflowEventHandler> { new SicknessCreateEventHandler(config), new WelfareCallCompletedEventHandler(config), new SicknessCompleteEventHandler(config) }; }
protected override void OnInit(EventArgs e) { base.OnInit(e); var id = Convert.ToInt32(Request["id"]); _config = TheWorkflowConfigurationService.GetConfiguration(id); _ui = TheWorkflowEntityUiResolver.Resolve(_config); foreach (var control in _ui.Render(_config)) { PropertiesUiPanel.Controls.Add(control); } }
protected override void OnInit(EventArgs e) { base.OnInit(e); SavePropertiesButton.Text = TheGlobalisationService.GetString("save_properties"); this.AddResourceToClientDependency("Moriyama.Workflow.Umbraco6.Web.Workflow.Js.Util.js", ClientDependencyType.Javascript); this.AddResourceToClientDependency("Moriyama.Workflow.Umbraco6.Web.Workflow.Js.Config.js", ClientDependencyType.Javascript); var id = Convert.ToInt32(Request["id"]); _config = TheWorkflowConfigurationService.GetConfiguration(id); _ui = TheWorkflowEntityUiResolver.Resolve(_config); foreach (var control in _ui.Render(_config)) { PropertiesUiPanel.Controls.Add(control); } }
/// <summary> /// caled directly from our code /// </summary> /// <param name="config"></param> public SicknessCompleteEventHandler( IWorkflowConfiguration config) { WorkflowConfiguration = config; EventType = "Complete"; ObjectType = "Sickness"; }