This is not the document you are looking for? Use the search form below to find more!

Report home > Others

A simple workflow system using state machines

0.00 (0 votes)
Document Description
A simple workflow system using state machines
File Details
Submitter
  • Name: alina

We are unable to create an online viewer for this document. Please download the document instead.

A simple workflow system using state machines screenshot

Add New Comment




Related Documents

How To Pick The Perfect Subwoofer Boxes For Your Car Audio Needs - What It Can Really Do For You:- and Android Tablets: 6 Clever Uses For An Android Tablet:- and also Choosing A Home Alarm System And The Best Options:-

by: bryanolson1026, 4 pages

How To Pick The Perfect Subwoofer Boxes For Your Car Audio Needs - What It Can Really Do For You:- Listening to music while they drive is something that many people like to do, but sometimes their ...

About a coincident index for the state of the economy

by: samanta, 32 pages

The construction of coincident indexes for the economic activity ofa country is a common practice since the fifties. The methodologies vary from heuristic methods to probabilistic or statistical ones ...

Implementing a Management Operating System at Travelex

by: dave birchall, 4 pages

Implementing a Management Operating System at Travelex.

Project Engineering a Machinery Management System

by: sebastian, 6 pages

Project Engineering a Machinery Management System

Stop Anxiety Now - Three Herbal Anxiety Remedies That Work and PS3 Flashing Red Light - An Easy Fix To Start With and also Create a Custom Office by Using Computer Desk Plans

by: terencebuckl103, 3 pages

Stop Anxiety Now - Three Herbal Anxiety Remedies That Work and PS3 Flashing Red Light Three herbal anxiety remedies can stop anxiety now. They relieve generalized anxiety disorder symptoms at a ...

Do I need a security camera system for my home ??

by: theresaakibby, 1 pages

Wondering who took the cookie from the cookie jar? Robbery and employee theft are responsible for a large portion of profit loss in a company and by installing a security camera system at your ...

Why Hire A Professional To Install A Houston Sprinkler System

by: angiesmart321, 1 pages

Houston sprinkler can help you if you are considering the installation of a yard sprinkler system. A sprinkler system will ease the task of keeping your yard looking lush and beautiful.

If You Want To Lose Weight Here Is Actually A Simple Method That Should Help

by: cod4r6wowi, 1 pages

Obtaining the results you are trying to find when using a weight-loss system is a thing that many men and women never end up doing and due to this they have lost faith in all the different weight ...

Intelligent and Effective Heart Attack Prediction System Using Data Mining and Artificial Neural Network

by: shinta, 15 pages

The diagnosis of diseases is a vital and intricate job in medicine. The recognition of heart disease from diverse features or signs is a multi-layered problem that is not free from false ...

REBNY Request for Proposal (RFP) To Provide a Listing Transmission System and Listing Service Products & Services

by: jozebnyc, 48 pages

The Real Estate Board of New York, Inc. (REBNY) would like to evaluate listing service system providers who have the resources and capabilities that meet or exceed the needs and requirements detailed ...

Content Preview
A simple workflow systemDavid Petersonpeterson@orbitec.com.auWhat is a workflow? A process that moves through a sequence of steps (from start and finish) in order to performsome functionExamples׏ Fulfilling an order● Publishing documents / content● Approving a requestA few things in common ...● Typically multi-step● Performed asynchronously● May be long-running● Steps may be conditional● Each step may need to do an operationThe IdeaMany simple workflowscan be modelled as afinite state machine(Not all)acts_as_state_machine● AASM to friends!● Rails plugin by Scott Barron● Provides:●A simple FSM implementation●A DSL for expressing FSM in Ruby codehttp://elitists.textdriven.com/svn/plugins/acts_as_state_machine/trunk/# Basic workflow exampleclass ActionWorkflow < ActiveRecord::Base acts_as_state_machine :initial => :created, :column => 'status' state :created state :approved state :rejected state :cancelled event :approve { transitions :to => :approved, :from => :created } event :cancel { transitions :to => :cancelled, :from =>[:created, :approved, :rejected] } ...endAASM provides some methods● An action! method for each event● A query? method for each stateExamples: workflow.approve! # moves to approved state workflow.cancelled? # Returns booleanGuards event :approve { transitions :to => :approved, :from => :created, :guard => Proc.new {|w| !w.expired?}}● Allows conditions on transitions● Transition is not available unless condition is met● Some conditions may be expressed best in your code, not in guards

Download
A simple workflow system using state machines

 

 

Your download will begin in a moment.
If it doesn't, click here to try again.

Share A simple workflow system using state machines to:

Insert your wordpress URL:

example:

http://myblog.wordpress.com/
or
http://myblog.com/

Share A simple workflow system using state machines as:

From:

To:

Share A simple workflow system using state machines.

Enter two words as shown below. If you cannot read the words, click the refresh icon.

loading

Share A simple workflow system using state machines as:

Copy html code above and paste to your web page.

loading