Module: OpenWFE::Participant
- Included in:
- LocalParticipant
- Defined in:
- lib/openwfe/participants/participant.rb
Overview
The ‘participant’ concept is displayed as a module, so that other pieces of code may easily ‘mix it in’.
Participant extensions should at least provide a consume(workitem) method. As an option, it can provide a cancel(cancelitem) method.
The engine will transmit instances of OpenWFE:WorkItem via the consume method.
If there is a cancel method available and an OpenWFE::CancelItem instance is emitted (cancelling a process or part of it), it will be fed to the participant only via the cancel method.
If there is no cancel method, the participant will not get notified of the cancellation.
Instance Method Summary collapse
-
#consume(workitem) ⇒ Object
A Participant will be receiving OpenWFE::WorkItem’s via this method.
Instance Method Details
#consume(workitem) ⇒ Object
A Participant will be receiving OpenWFE::WorkItem’s via this method.
70 71 72 73 74 75 |
# File 'lib/openwfe/participants/participant.rb', line 70 def consume (workitem) raise NotImplementedError.new( "implementation for method consume() "+ "is missing in class '#{self.class}'") end |