Overview: Stage Sets for ApplicationsDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internalTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:0; } .sp td{ border-bottom: 1px solid; border-right: 1px solid; border-color:#E0E0E0; background-color: #ffffff; height: 20px; padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; } .sphr td{ border-right: 1px solid; border-bottom: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; height: 20px; } .title { color: #D1232B; font-weight:; font-size:25px; } .hd1{ color: #D1232B; font-weight:; font-size:18px; } .hd2{ color: #646464; font-weight:bold; font-size:16px; } .hd3{ color: #7a7a7a; font-weight:; font-size:16 px; text-decoration:; } .hd4{ color: #000000; font-weight:bold; font-size:14 px; text-decoration:; } --> Overview: Stage Sets for Applications GoalLearn how to share stages sets for workflows in a shared process. Stage sets for applications Recall that the purpose of Stage icons is to place the user in the progression of a business process. The user does not need to be aware of where they are in a workflow execution – being in a subflow or the main workflow is not really relevant to them. Stage Sets elevate the notable aspects of a business process to the user and communicate using icons. As a designer involved in service automation, you will know the meaningful business process stages independent of the design of the workflow. The value of designing Stage Sets to identify the stages then apply them to all workflows involved in a process. This lab provides a simple example of sharing a stage set across a main flow that uses a subflow within a single business process. When designing applications it is typical to put common re-usable behavior in subflows. As was learned in Lab 1, the significant elements of a business process may be defined in a single stage set. For this lab, a simple main flow and subflow have been added to the K14 application. has been added to your instance. Return to the main ServiceNow tab. In the Application Navigator Text filter type, Stage Sets.Select K14-301 Main to Subflow Set Stage.Notice there are four elements in this stage set. Notice the order of the stages. In the example we will use Linear Renderer. QUESTION: What is relevance of the Order column when using the Linear Renderer? Return to the main Workflow Editor.Select Open.Open K14 – Stage Set Main Flow. Your workflow should look like this: Select the Gear Menu > Check Out.Select the Gear Menu > Properties. QUESTION: Looking at the properties, what is the Condition start workflow execution? QUESTION: What property needs to be updated so that the workflow will update the Stages icons? QUESTION: What does User Specified mean in relation to the Linear Stage Renderer? In the Stage field, assign the Stage column if not already assigned.Close the Workflow Properties form.Select the Gear Menu > Edit Stages.Select Import from Stage Set.Select K14-301 Main to Subflow Set. Your Workflow Stages should look like this: Close the Workflow Stages list.To the Log from Main Flow - Request Log Message Activity, assign the Main Flow Start stage.To the Log Message After Subflow Log Message Activity, assign the Main Flow End stage. Note that the Stage displays on the Activity. Notice in the workflow there is a subflow right in the center. We will check out that subflow next and add the same Stage Set, but assign it different Stages of the Stage Set to subflow activities. Select the Gear Menu > Publish.Select Open. Open K14 – Stage Set Sub Flow. Your workflow should look like this:Select the Gear Menu > Check Out.Select the Gear Menu > Properties. Notice the If Condition Matches property is set to None. QUESTION: Why do you think this Condition is set to None? When None is the selection the Workflow Engine will not run the workflow. Since this is a subflow, that is perfect. In this scenario, it will only run when called from the main workflow. QUESTION: If we want this workflow to report stages, what do we need to make sure is defined in the Workflow Properties? Select the Stage column, if not set in the Stage field.Click Update.Import the K14-301 Main to Subflow Set Stage Set into the subflow.To the Log from Subflow Flow Log Message Activity, assign the Sub Flow Start Stage.To the Second Message from Subflow Log Message Activity, assign the Sub Flow End Stage.Select the Gear Menu > Publish.Return to the Main ServiceNow tab and navigate to K14 301s.Select the New button.Fill out the form as follows: Name: Stage Set Click Submit. Your Stage Set icons appear in the Stage column. Expand the Stage icons. Notice the stages from both the main flow and the subflow are represented in a single icon list. Summary As a designer involved in service automation, you will know the meaningful business process stages independent of the design of the workflow. Once defined, a Stage Set can be shared across all workflows and subflows in the Application simply by importing it into workflow. The Linear is the most effective Renderer when designing applications because the order that the icons appear to the user will remain consistent throughout the process, even when executing over multiple workflows.