1

What component can I place on a transition trigger in State Machine Action Workflow in order to solve this task:

  1. I have 3 states: "State 1", "State 2", "State 3".
  2. Exit action of "State 1" has "Simple Task".
  3. When "Simple Task" is approved State Machine should go to "State 2", otherwise State Machine should go to "State 3".

How can I solve this task?

Environment: SharePoint 2013, Workflow Manager 1.0, Visual Studio 2013

0

Have two transitions coming out of State 1, one going to State 2 and one going to State 3.

For the transition condition you need to test the outcome field from the task. I can't remember what the name of the field is exactly, it might be Outcome or TaskOutcome (I think the latter). Take the outcome, put it into a workflow variable called Var1 (or whatever you like). Then in the condition for the two transitions put Var1 == "Approved" and Var1 == "Rejected" respectively, or whatever you want the tests to be depending on what your task outcomes are.

| improve this answer | |
  • Is it ok if I place Task in "State 1" Exit? – Zagir Aknazarov Jun 23 '16 at 12:03
  • Yep that's fine. – Submits Jun 23 '16 at 12:28
0

You can perform the same using either SharePoint Designer Workflow or Visual Studio workflow.

If the steps are simple and can be sufficed using designer workflow then go ahead with designer workflow. If you need customisation in approach then go ahead with Visual studio workflow.

Here are some links that can help you give brief idea about creating Three Stage workflow.

SharePoint Workflow Basics

Code Project:Three State Workflow

Use a Three-state workflow

Multi Step Approval workflow

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.