Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between state machine and workflow?

I want to learn what is the difference between "State machine" and "workflow", and how is it any different from "State machine workflow"?

like image 511
Rohit Sharma Avatar asked Jan 12 '12 18:01

Rohit Sharma


People also ask

What is the difference between state machine and flowchart?

State machines are better in describing a continously running mechanism (f.e. a robot). Flowcharts are better at describing a branching sequence of actions. State machines naturally encapsulate action groups, flowcharts don't.

What is a state machine workflow?

State machine workflows provide a modeling style with which you can model your workflow in an event-driven manner. A StateMachine activity contains the states and transitions that make up the logic of the state machine, and can be used anywhere an activity can be used.

What is state machine workflow in Sharepoint?

The state machine construct uses Change State actions to set which state to run next. The actions in a state are repeated until a Change State action is encountered and all actions in the state have completed executing. Workflow execution does not move to the next state instantly when the Change State action is run.

What is meant by a state machine?

In general, a state machine is any device that stores the status of something at a given time and can operate on input to change the status and/or cause an action or output to take place for any given change.


1 Answers

Workflow and state machines are defined nicely on wikipedia.

I'm guessing you're getting the term State Machine Workflow from this page. .NET seems to support different ways of modeling workflows (which are just some defined steps in a complex human task). A state machine (which is a map of states with transitions between them) would allow loops as opposed to a sequential workflow, which precedes down different branches until done.

like image 96
Jere Avatar answered Oct 11 '22 12:10

Jere