Event/Alien2XML definition

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
David (Talk | contribs)
(Created page with 'Device events have prefix <code>workplace.device.<name>.event.</code> while alien2xml node definitions have prefix <code>node.</code> Example (alien2xml): node.product = .* n…')
Newer edit →

Revision as of 07:23, 10 May 2011

Device events have prefix workplace.device.<name>.event. while alien2xml node definitions have prefix node.

Example (alien2xml):

node.product = .*
node.product.item.regex = {headend}(.*?){part}
node.product.item = [[:]]
node.product.header.regex = "{head}(.*?){headend}"
node.product.header = <node:header=[[:]]>
node.product.part.list_member = "{part}(.*?){partend}"
node.product.part = [[:]]

node.header = .*
node.header.title = [[:]]


The first condition for node (or event) to be created is this:

node.<node_name> = <regex>

If the input (alien input or raw device input) doesn't match the regex, any other definition rules are ignored and an empty XML element node_name (or no event) is generated.

Personal tools