##
my $workflow = Workflow::Generator->new(type => "myworkflow");
$state = $workflow->add_state(name => "INITIAL");
$state->add_action(name => "upload file", resulting_state => "uploaded");
$state = $workflow->add_state(name => "uploaded", autorun => "yes");
$state->add_action(name => "verify_file", resulting_state => "annotate");
$condition = $state->add_condition(test => \&check_file);