Actions

External Data Input

From Zenitel Wiki

Revision as of 15:14, 3 July 2007 by Hege (talk) (New page: ==Event description== {| border="1" cellpadding="4" ! align="left"|Event Owner: | EDI Text Config |- ! align="left"|Event type: ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Event description

Event Owner: EDI Text Config
Event type: External Data Input
Sub-Event: 1 – 4: specifies which EDI port. 0: matches all ports
When Change to ON: When valid data is received on EDI port
When Change to OFF: N/A
When Related to: N/A
  • Input message
- The EDI port is defined in the ‘Serial Ports’ Setup
- The input message must have a termination character. Max 128 char.
- Parsing the content is done in the action string
  • Context parameters
- %edi is the input text where termination character is excluded
- %sev is the EDI port (sub-event)
  • Operator macros
- %scutc(string,start-pos,lenght)
  • Extract substring by byte (character) position
  • Example: %scutc(0123456789,2,3) returns 234
  • Example: %scutc(%edi,4,3) returns 3 characters from the input string, starting from char 5