Top Level Namespace
Defined Under Namespace
Modules: CPEE
Constant Summary collapse
- EVENTS =
%w{ event:00:handler/change }
Instance Method Summary collapse
-
#persist_handler(instance, key, mess, redis) ⇒ Object
{{{.
-
#send_response(instance, key, url, value, redis) ⇒ Object
}}}.
Instance Method Details
#persist_handler(instance, key, mess, redis) ⇒ Object
{{{
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cpee-worklist/routing/forward-votes.rb', line 26 def persist_handler(instance,key,mess,redis) #{{{ redis.multi do |multi| multi.sadd("worklist:#{instance}/callbacks",key) multi.set("worklist:#{instance}/callback/#{key}/subscription",mess.dig('content','subscription')) multi.set("worklist:#{instance}/callback/#{key}/uuid",mess.dig('content','activity-uuid')) multi.set("worklist:#{instance}/callback/#{key}/label",mess.dig('content','label')) multi.set("worklist:#{instance}/callback/#{key}/position",mess.dig('content','activity')) multi.set("worklist:#{instance}/callback/#{key}/type",'vote') end end |
#send_response(instance, key, url, value, redis) ⇒ Object
}}}
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/cpee-worklist/routing/forward-votes.rb', line 37 def send_response(instance,key,url,value,redis) #{{{ CPEE::Message::send( :'vote-response', key, url, instance, {}, {}, value, redis ) end |