06.01.2015 Views

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7 - Reader Namespace<br />

reader.events.trigger<br />

This function is used by a client to distribute an event to all registered event<br />

channels.<br />

The following example triggers event.app.start_business_process<br />

(sends it out to all registered event channels):<br />

>>> reader.events.trigger(name =<br />

"event.app.start_business_process ap_id = 23")<br />

ok<br />

Type<br />

Permissions<br />

Parameters<br />

function<br />

guest=x,admin=x<br />

name (string)<br />

reader.events.unregister<br />

This function unregisters events on a event channel.<br />

The following example un-registers for the event.tag.depart on event<br />

channel 16.<br />

>>> reader.events.unregister(id=16, name=event.tag.depart)<br />

ok<br />

Type<br />

Permissions<br />

Parameters<br />

function<br />

guest=x,admin=x<br />

id (int)<br />

name (string)<br />

<strong>INfinity</strong> <strong>510</strong> <strong>Protocol</strong> <strong>Reference</strong> <strong>Guide</strong> 61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!