EWSD Console
Copyright (C) 2006, 2008
Eugene
Prokopiev
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License
for more details.
EWSD Console can be used to
execute MML tasks for
EWSD
digital switching system. Prerequests for EWSD
Console includes:
- Linux (with X Window) or Windows operation system installed on
local computer
- Java Runtime Environment 5.0 installed on local computer
- NetManager Communication Server with FOS Gateway installed on
remote computer
Download:
After extracting from archive you can run it with startup.sh,
startup.bat or statup-debug.bat depending on operation system.
EWSD Console intensely use XML format for storing configuration data,
so it's recommended to use any XML-enabled text editor with folding and
syntax highlighting (
SciTE
for example).
Every connection to FOS Gateway must be described in config.xml in such
way:
After running EWSD Console you can select connection and use existing
connection parameters or modify them:
Main EWSD Console window looks like this:
Commands must be entered in Task panel. All tasks will be displayed in
Task List panel. Every task can have two or more results which will be
displayed in Results List panel. Every result have text content which
will be seen in Detail panel on Raw Details page.
You can define how to parse some results in types.xml file:
In this file any result can by classified as type with:
- name - unique type name which will be displayed in Results List
panel
- criteria - XPath
expression which must return true if result text content ('.')
satisfies to selected type
- fields - XPath
expressions which must cut significant parts of result text content
('.') to display in Detail panel on Parsed Details page
XPath expressions support is
implemented with
JXPath
library, so it's possible to use Java objects and methods in
expressions.
Instead of standart MML commands you can use this special modification
to display results in in Parsed Results List panel:
<mml command>;<criteria>;<fields={displayed fields
list}>
XPath expressions operating
with result type and result fields or empty space can be used as
criteria. Displayed fields list must be separated by ','. Simple
example was shown in picture with main EWSD Console window.
Because such commands can be very long it's possible run it from
MacroCommands dialog:
Before using commands must be defined in commands.xml file:
Every command must have:
- name - unique type name which will be displayed as MacroCommand
- text - command text possibly with parameters ($Date, $BeginTime,
$EndTime in example)
- params with default value (XPath
expression) and match criteria (another XPath expression which can use
'.' as value entered by user) to restrict user input
It's possible to shedule MacroCommand executing with optional delay and
period.
It's also possible to save every table to CSV format from EWSD Console.