Last active
          August 29, 2015 14:16 
        
      - 
      
- 
        Save sitetechie/0535a0a4be81ce093a2f to your computer and use it in GitHub Desktop. 
    BPM::Engine::Plugin::StepRunner
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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