Workflow Foundation

Tank state machine

In this case we used a state machine of workflow foundation.

The InitialState wait an user interface event to set the manual dip.

The SourceSelectionState wait for source selection: manual / gauge.

The QualityInspectionState manage all quality inspection.

The ConfirmationState will manage user and SCADA confirmation.

The ReportingState will manage .NET code to compose a report and print (or send via mail)

The TankReleasedForDistribution is the end of the state machine

The Tank sample manager will show you an asyncronous task with workflow foundation.

Tank handover