You are here: Getting Started > Tutorials > Tutorial 3: Building advanced forms and workflows > T3-10. Configure transitions and promote fields

Tutorial 3–Step 10: Configure transitions and promote form fields

After completing this exercise, you will use workflow transitions and conditions to route documents based upon data entered into a form.

Transition properties

Transition properties allow you to define conditions that must be met before moving from one node to the next. For example, you can set conditions based on SharePoint column values such as Priority or Amount, or based on the current workflow state such as Approved or Rejected.

You can use the following operators:

Relational
Operators
DescriptionLogical
Operators
Description

==

Equal

&&

And

!=

Not
equal

||

Or

>

Greater

!

Not

>=

Greater than
or equal

 

 

<=

Less than
or equal

 

 

<

Less

 

 

=

Assignment

 

 

  1. Open the Time Off Request solution.
  2. Delete the Transition between the Start node and the Manager Approval node.
  3. Insert a Decision Node anywhere in the workflow.

  4. Rename the Decision Node to Type of Time Off.

  5. Make a Transition from the Start Node to the Decision Node.
  6. Insert a Notification Node in the Manager swimlane.
  7. Make a transition from Type of time off node to the Notification node.
  8. Make another transition from Type of time off node to the Manager Approval node.
  9. Select the transition between the Type of time off node and the Notification node.
  10. In the Properties pane, on the Condition property, click the […] button.
  11. Right-click in the whitespace, and then select fields.

    Notice that your field from the form is now there. In addition, Since we have not promoted the field we would like to use yet, it is not available in the workflow.

  12. Navigate back to your Time Off Request form, and then go to the Form Options.
  13. From the Category list, select Property Promotion.
  14. Click Add…
  15. Select TypeOfTime, and then click OK.
  16. Click OK, and then navigate back to Winshuttle Designer and repeat step 11.

    Notice that when you right-click and select Fields again, the TypeOfTime field still isn’t listed.

  17. In order to get the updated information from our InfoPath form, you need to publish the form one more time.

    Don’t forget to close InfoPath before publishing.

  18. After you have published your form, navigate back to Winshuttle Designer, and then select the transition between Type of Time Off and the Notification node.
  19. In the Properties pane, select Condition.
  20. In the Edit Condition dialog box, right-click in a blank space, and then select Fields. The TypeOfTime field now appears.
  21. Select TypeOfTime.
  22. To the right of [Type Of Time] insert the text == "Emergency" and then click OK.

  23. Select the transition between Type of Time Off and the Notification node.
  24. Click the Edit Condition button.
  25. In the Edit Condition box, right-click in a blank space, and then select Functions.
  26. Select Otherwise, and then click OK.
  27. Insert another End Node in the originator swimlane.
  28. Create one last transition from the Notification node
  29. Save your workflow, publish your form and workflow again, and then preview.