Class: OpenWFE::Engine
- Inherits:
-
Object
show all
- Defined in:
- lib/openwfe/extras/participants/activeparticipants.rb
Overview
Opening engine to update its reply method to accept these active record workitems.
Instance Method Summary
collapse
Instance Method Details
#oldreply ⇒ Object
336
|
# File 'lib/openwfe/extras/participants/activeparticipants.rb', line 336
alias :oldreply :reply
|
#reply(workitem) ⇒ Object
Also known as:
forward, proceed
338
339
340
341
342
343
344
345
346
347
348
|
# File 'lib/openwfe/extras/participants/activeparticipants.rb', line 338
def reply (workitem)
if workitem.is_a?(Workitem)
oldreply(workitem.as_owfe_workitem)
workitem.destroy
else
oldreply(workitem)
end
end
|