Skip to end of banner
Go to start of banner

Wizard Workflows

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

A wizard workflow allows users to navigate through a series of steps or conditions to execute a workflow. Creating a wizard aims to divide a workflow into multiple screens and easily instruct the user on completing the workflow.

When running a workflow in the EmpowerID Web UI, you can determine whether it's a Wizard Workflow or a Simple Workflow by looking at the top of the interface. There, you'll find a line with circles, each circle representing a step in the workflow. If the circle's border is filled, it means you are currently on that step. If the circle itself is filled and displays a check icon, it means you have completed that step.

Below, we have the code for converting our workflow into a wizard workflow (Assuming a three-step workflow). You will write the following code in the BeforeExecute event handler or in the SetDataCode method of the activity placed within your workflow.

            CurrentWorkflow.UiSteps = new WorkflowUISteps();            
              
			 var step1 = new UIStep();
			 step1.Name = this.CurrentWorkflow.myNewWizardFormActivity1.QualifiedName;
			 step1.FriendlyName = "My First Step";
			 step1.Description =  "My First Step";

			 var step2 = new UIStep();
			 step2.Name = this.CurrentWorkflow.myNewWizardFormActivity2.QualifiedName;
			 step2.FriendlyName = "My Second Step";
			 step2.Description =  "My Second Step";

			 var step3 = new UIStep();
			 step3.Name = this.CurrentWorkflow.myNewWizardFormActivity3.QualifiedName;
			 step3.FriendlyName = "My Third Step";
			 step3.Description =  "My Third Step";

             CurrentWorkflow.UiSteps.Steps.Add(step1);
			 CurrentWorkflow.UiSteps.Steps.Add(step2);
			 CurrentWorkflow.UiSteps.Steps.Add(step3);


			 CurrentWorkflow.UiSteps.CurrentStep = CurrentWorkflow.UiSteps.Steps[0];

step1.Name = this.CurrentWorkflow.myNewWizardFormActivity1.QualifiedName; The name you associate with this property is going to be the Qualified name of the activity for that step. Behind the scene, our workflow engines use this name to find the activity.

  • No labels