Studio

On the Studio tab, you can modify an existing workflow or create a new one. As stated in the Default Workflow Studio topic, the easiest way to get started is to select a Schneider Electric-provided workflow in the Default Workflow Studio tab, then click the Override in Tenant button. This toggles you to the Studio tab and creates a draft copy of the workflow.

NOTE: The Minimum Client Version drop-down needs populated with the release version that your client-side workflow requires to execute.


When you want to customize a client–side dynamic workflow, you can select an action from the Insert Node Action list, which places the code directly into the codeblock, and click Publish.

Graph

You design and modify the workflow within the Graph subtab.

  • All design work happens on the left-hand side of the interface, and the graph on the right-hand side adjusts as you work.

  • The Graph subtab uses syntax from the open source graph visualization software GraphViz.

    • The exceptions to the GraphViz syntax are any arguments that have the prefix “se_”. These are specific to Schneider Electric functionality.


Test Cases

In the Test Cases subtab, you run your workflow through a variety of scenarios to ensure it can complete its tasks given specified arguments and criteria. If you started with a workflow from the Default Workflow Studio, it came with a variety of pre-written scenarios.

Click on a test case to highlight it in green. This populates the middle pane of the interface.

Notice there are four subtabs: Basics, Responses, Events, and Output Assertion. There is also a Draw Desired Path button and a Run Test button.

  • Draw Desired Path: This highlights the paths covered by the current test case.

  • Run Test: This initiates the current test case.

    TIP: If you want to run all test cases, click the Test All tool in the left-hand pane, above the list of test cases.

  • Basics: This provides high-level information about the test case, including Title, Initial State, and Nodes Visited.

  • Responses: This allows you to simulate the expected results from a web service call.

  • Events: This allows you to simulate expected service bus messages.

  • Output Assertion: After the test case is complete, this confirms an expected value in an object.

View Examples

You can use the examples included in the Workflows plugin, such as Fast Track and Custom Session Properties, to help quickly set up some workflows.
  1. Click the View Examples button on the Studio tab of the Workflows plugin.
  2. In the Examples dialog, click on the workflow example you want to use from the list on the left. In the graphic below, the Custom Session Properties example is selected.

  3. On the Graph tab in the middle pane of the Examples dialog, select all the code text and copy the code using the keyboard shortcut Ctrl+C.
  4. Close the Examples dialog then go back to the Studio tab and paste the code into the code textbox using the keyboard shortcut Ctrl+V.

    The workflow diagram on the right side of the window updates to show the workflow you pasted in.

    Before publishing your workflow, it's wise to review the example code you pasted to look for any variables that need to be updated to variables specific to your organization. For example, Custom Session Properties needs the name of the property that you stored on the session to match. The Fast Track example needs references to the workflowButtonKey to match the key of the button you created in on the Dynamic Workflow Buttons subtab on the Advanced tab in the Editor plugin.

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?