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



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

alias :oldreply :reply

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



284
285
286
287
288
289
290
291
292
293
294
# File 'lib/openwfe/extras/participants/activeparticipants.rb', line 284

def reply (workitem)

    if workitem.is_a?(Workitem)

        oldreply(workitem.as_owfe_workitem)
        workitem.destroy
    else

        oldreply(workitem)
    end
end