The State machine workflow perform different action in response to discrete
events .Here we define state and state transition.Basically the are useful
when we do not the sequence of activities that we want to performs,or the
set of possible combination of paths through the workflow is tooo large or
complex.