Handled start and stop of workflow through the workflow definition. StartState and EndState have been created and should be used once in the definition of a new workflow. That allows to pre-validate a definition while the runtime will do minimal work to figure out the transition states.