Skip to content

Instantly share code, notes, and snippets.

@sitetechie
Last active August 29, 2015 14:16
Show Gist options
  • Save sitetechie/0535a0a4be81ce093a2f to your computer and use it in GitHub Desktop.
Save sitetechie/0535a0a4be81ce093a2f to your computer and use it in GitHub Desktop.
BPM::Engine::Plugin::StepRunner
package BPM::Engine::Plugin::StepRunner;
use Moose::Role;
override 'start_activity' => sub {
my ($self, $activity, $instance) = @_;
# warn "Overriding start_activity";
};
sub start_activity_step {
my ($self, $activity, $instance, $run) = @_;
$instance->apply_transition('assign');
$self->_queue_push([$activity, $instance]);
$self->_run if $run;
}
no Moose::Role;
1;
__END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment