Class: Bumbleworks::StorageParticipant

Inherits:
Ruote::StorageParticipant
  • Object
show all
Defined in:
lib/bumbleworks/participants/storage_participant.rb

Instance Method Summary collapse

Instance Method Details

#current_workitemObject



13
14
15
# File 'lib/bumbleworks/participants/storage_participant.rb', line 13

def current_workitem
  self[workitem.sid]
end

#on_workitemObject



3
4
5
6
7
# File 'lib/bumbleworks/participants/storage_participant.rb', line 3

def on_workitem
  return_value = super
  trigger_on_dispatch
  return return_value
end

#trigger_on_dispatchObject



9
10
11
# File 'lib/bumbleworks/participants/storage_participant.rb', line 9

def trigger_on_dispatch
  Bumbleworks::Task.new(current_workitem).on_dispatch
end