Class OpenWFE::AliasParticipant
In: lib/openwfe/participants/participants.rb
Parent: Object

Simply aliasing a participant.

    engine.register_participant "toto" do |workitem|
        workitem.toto_message = "toto was here"
    end
    engine.register_participant "user_.*", AliasParticipant.new("toto")

Workitems for participant whose name starts with ‘user_’ will be handled by participant ‘toto’. Note that you can‘t use use a regex as the aliased name ("toto" in the example).

Methods

consume   new  

Included Modules

LocalParticipant

Attributes

aliased_name  [R] 

Public Class methods

[Source]

     # File lib/openwfe/participants/participants.rb, line 200
200:         def initialize (aliased_name)
201: 
202:             @aliased_name = aliased_name
203:         end

Public Instance methods

[Source]

     # File lib/openwfe/participants/participants.rb, line 205
205:         def consume (workitem)
206: 
207:             get_participant_map.dispatch(nil, @aliased_name, workitem)
208:         end

[Validate]