How to use "State Machine" activity in SPARK Workflow?

Last Update: December 25, 2018

Apply for: SPARK Workflow for SharePoint 2013/2016 and Office 365

Suppose you want to design a workflow for training request, the workflow first creates an approval task for the direct supervisor of the requester in order to approve/reject the request, then it proceeds to the training officer to get a final approval from him/her, if the direct supervisor is not available (no supervisor), the process proceeds to the training officer to get his/her approval, if the process task gets rejected by the supervisor or by the training officer, the requester can resubmit the request again.

Here are the steps on how to do that.

  1. Create a new list workflow. For more details on how to create a list workflow, refer to Create a list workflow use case.
  2. In the main menu ribbon, in the Workflow group, click on Settings and configure the workflow settings as follows:
    How to use State Machine activity in SPARK Workflow1.png
  3. Drag activities onto the workflow canvas and drop it onto a design node and change its titles as appeared in the following screenshot:
    How to use State Machine activity in SPARK Workflow2.png
  4. Configure activity (1) as follows:
    How to use State Machine activity in SPARK Workflow3.png
  5. Configure activity (2) as follows:
    How to use State Machine activity in SPARK Workflow4.png
  6. Configure activity (3) as follows:
    How to use State Machine activity in SPARK Workflow5.png
  7. Configure activity (4) as follows:
    How to use State Machine activity in SPARK Workflow6.png
  8. Configure activity (5) as follows:
    How to use State Machine activity in SPARK Workflow7.png
  9. Configure activity (6) as follows:
    How to use State Machine activity in SPARK Workflow8.png
  10. Configure activity (7) as follows:
    How to use State Machine activity in SPARK Workflow9.png
  11. Configure activity (8) as follows:
    How to use State Machine activity in SPARK Workflow10.png
  12. Configure activity (9) as follows:
    How to use State Machine activity in SPARK Workflow11.png
  13. Configure activity (10) as follows:
    How to use State Machine activity in SPARK Workflow12.png
  14. Configure activity (11) as follows:
    How to use State Machine activity in SPARK Workflow13.png
  15. Configure activity (12) as follows:
    How to use State Machine activity in SPARK Workflow14.png
  16. Configure activity (13) as follows:
    How to use State Machine activity in SPARK Workflow15.png
  17. Configure activity (14) as follows:
    How to use State Machine activity in SPARK Workflow16.png
  18. Configure activity (15) as follows:
    How to use State Machine activity in SPARK Workflow17.png
  19. Configure activity (16) as follows:
    How to use State Machine activity in SPARK Workflow18.png
  20. Configure activity (17) as follows:
    How to use State Machine activity in SPARK Workflow19.png
  21. Configure activity (18) as follows:
    How to use State Machine activity in SPARK Workflow20.png
  22. Configure activity (19) as follows:
    How to use State Machine activity in SPARK Workflow21.png
  23. Configure activity (20) as follows:
    How to use State Machine activity in SPARK Workflow22.png
  24. Configure activity (21) as follows:
    How to use State Machine activity in SPARK Workflow23.png
  25. Configure activity (22) as follows:
    How to use State Machine activity in SPARK Workflow24.png
  26. Configure activity (23) as follows:
    How to use State Machine activity in SPARK Workflow25.png
  27. Configure activity (24) as follows:
    How to use State Machine activity in SPARK Workflow26.png
  28. Configure activity (25) as follows:
    How to use State Machine activity in SPARK Workflow27.png
  29. Configure activity (26) as follows:
    How to use State Machine activity in SPARK Workflow28.png
  30. Configure activity (27) as follows:
    How to use State Machine activity in SPARK Workflow29.png
  31. Publish the workflow by clicking on the Publish button in the workflow ribbon.
  32. Now you can test the workflow by adding a new item to the list that this workflow being created on.