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



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