Class: OpenWFE::Engine

Inherits:
Object
  • 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.

Direct Known Subclasses

OpenWFE::Extras::DbPersistedEngine

Instance Method Summary collapse

Instance Method Details

#oldreplyObject



326
# File 'lib/openwfe/extras/participants/activeparticipants.rb', line 326

alias :oldreply :reply

#reply(workitem) ⇒ Object Also known as: forward, proceed



328
329
330
331
332
333
334
335
336
337
338
# File 'lib/openwfe/extras/participants/activeparticipants.rb', line 328

def reply (workitem)

    if workitem.is_a?(Workitem)

        oldreply(workitem.as_owfe_workitem)
        workitem.destroy
    else

        oldreply(workitem)
    end
end