# Extensions
## Invokers
Most platform specific extensions are realized via special invokers. These are components that you can load via:
Invoke | |||
---|---|---|---|
type |
dirmon DirectoryMonitor http://uscxml.tk.informatik.tu-darmstadt.de/#dirmon | ||
param | expr | default | comment |
dir | A valid system directory | none | Anything that evaluates to a valid directory with the given datamodel |
recurse | "true" or "false" | false | Whether or not to monitor subdirectories as well. |
suffix suffixes |
filename suffixes | all | A single or space-seperated list of suffixes of files that will get reported |
Send | |||
Will not accept anything yet. | |||
Emitted Events | |||
Example | 'invokeid' => "dirmon.vrml" 'origintype' => "dirmon" 'origin' => "#_dirmon.vrml" 'name' => "file.existing" 'data' ... 'file' ... 'atime' => "1361746741" 'ctime' => "1350452789" 'dir' => "/Users/sradomski/data" 'extension' => "wrl" 'mtime' => "1328012634" 'name' => "HARD_MP_VAL_035.wrl" 'path' => "/Users/sradomski/data/HARD_MP_VAL_035.wrl" 'relPath' => "/HARD_MP_VAL_035.wrl" 'size' => "1509110" | ||
Field | Details | ||
name | One of file.[existing|added|deleted|modified] | ||
data.file.dir | The directory as passed per dir param to invoke. | ||
data.file.path | The full path to the file we found. | ||
data.file.relPath | The relative path starting from data.file.dir to the file we found. | ||
data.file.size | File size in bytes. |
Invoke | |||
---|---|---|---|
type |
heartbeat http://uscxml.tk.informatik.tu-darmstadt.de/#heartbeat | ||
param | expr | default | comment |
interval | e.g. '3s' or '1200ms' | none | A time designation as defined in CSS2 |
eventname | The name of the event to send in the given interval | Defaults to heartbeat.<interval> | |
Send | |||
Will not accept anything yet. | |||
Emitted Events | |||
Example | 'invokeid' => "heartbeat" 'origintype' => "heartbeat" 'origin' => "#_heartbeat" 'name' => "heartbeat.100ms" 'data' => "undefined" | ||
Field | Details | ||
name | One of file.[existing|added|deleted|modified] | ||
data.file.dir | The directory as passed per dir param to invoke. | ||
data.file.path | The full path to the file we found. | ||
data.file.relPath | The relative path starting from data.file.dir to the file we found. | ||
data.file.size | File size in bytes. |