what's the best scenarios for used Windows Workflow? -


I'm learning this, but do not know the best scenario for using it (both state machine workflow and sequential workflow.

Take a look at this explanation:

is a sequential workflow The predicted workflow. Execution path can wait for the branch, or loop, or an external event, but in the end, the sequential workflow Activities, conditions and rules that we essentially keep on March ahead of workflow in the control of the process.

A state-machine workflow is an event-driven workflow, that is, state machine The workflow depends on the external event to drive to workflow. We define the legal states of the workflow, and between those states Legal changes Workflows are always in one state, and an incident will have to wait for a new state to arrive before the transition. Generally, the import decisions are carried out outside of the state machine workforce. Defines the structure, but the control is from the outside world.

This article also provides a good (but very similar) explanation:

To make progress in the workflow sequential workflow, all the decisions by the workflow It is taken only to have a well-defined beginning and well-defined end in order to direct the flow between the branches and the flow of the loops. This means that workflow is in control.

There is no real predetermined path of all steps for a fixed solution with state machine workflows. State machines take another approach. They wait for events and depending on these developments, they change their position. State machines are used when decisions are coming from an external application and are unpredictable, especially when user interaction is needed, then a state machine is a more convenient solution.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -