Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Are state machines just for parsing?

by samtregar (Abbot)
on Dec 08, 2004 at 22:03 UTC ( #413343=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <workflow>
         <type>myworkflow</type>
    ...
                  <condition test="$context->{user} ne 'CWINTERS'" />
             </action>
             ...
    
  2. or download this
       my $workflow = Workflow::Generator->new(type => "myworkflow");
       $state = $workflow->add_state(name => "INITIAL");
    ...
       $state = $workflow->add_state(name => "uploaded", autorun => "yes")
    +;
       $state->add_action(name => "verify_file", resulting_state => "annot
    +ate");
       $condition = $state->add_condition(test => \&check_file);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413343]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-03-25 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (313 votes). Check out past polls.