Skip to main content

Adding New Workflow

The Process is a combination of workflows containing sequences of activities. At the same time, a workflow is a granular unit of a Process.

You can add a Workflow to the Process by importing an existing Workflow (.XAML) file or create a new Workflow by adding a new Sequence. Each workflow is a separate file and has an extension .xaml

Importing Workflows

You can import an existing workflow from the file system or the Snippet Gallery.

Importing Workflow from a file system

  • In Process Designer, go to Project Explorer panel
  • Right-Click on the project name and expand the Import menu, and select Workflows
  • The file selection dialog pops up. Select the Workflow file (.xaml) to be imported.
  • Click on OK
note

When you import a workflow from another process, a copy of that workflow will be created inside the current Process. Hence, any changes to the workflow in the current Process will be done to the local copy and do not affect or reflect the original Process or workflow.

Importing Workflow from file system

Adding New Workflow

You can add the following three types of workflows to a Process:

Adding New Sequence

  • Go to the main menu's Design ribbon tab and click on the small down arrow in the New item. A dropdown list appears with three options. Select and click on the Sequence option.
  • New Sequence creation dialog appears. Fill in the Name and Location set to the Process path, and click on the Create button.
  • New Sequence is created. The Sequence_new.XAML file is created at Process path.
  • Refer to example process.

Adding New Flow Chart

  • Go to the main menu's Design ribbon tab and click on the small down arrow in the New item. A dropdown list appears with three options. Select and click on the Flow Chart option.
  • New Flow Chart creation dialog appears. Fill in the Name and Location set to the Process path, and click on the Create button.
  • New Flow Chart is created. The Flowchart_new.XAML file is created at Process path.
  • Refer to example process.

Adding New State Machine

  • Go to the main menu's Design ribbon tab and click on the small down arrow in the New item. A dropdown list appears with three options. Select and click on the State Machine option.
  • New State Machine creation dialog appears. Fill in the Name and Location set to the Process path, and click on the Create button.
  • New State Machine is created. The statemachine_new.XAML file is created at Process path.
  • Refer to example process.

Invoking Workflow

When you add a new workflow to your Process, the workflow can be invoked by other workflows part of the Process using Invoke Workflow activity.

You can either drag and drop Invoke Workflow activity from the Activities panel and configure it OR drag and drop the workflow from the Project Explorer panel to the designer panel as shown below.

Executing a Workflow

  • Open the workflow in the designer panel
  • From the Design ribbon panel, click on the arrow button below the Run button and click on Run File
  • The active workflow will be executed