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).
aliased_name | [R] |
# File lib/openwfe/participants/participants.rb, line 200 200: def initialize (aliased_name) 201: 202: @aliased_name = aliased_name 203: end