Hosts / Working with actions |
An action is classified as a Commands action or a JavaScript action.
For JavaScript actions, you can enter statements in a free-form manner. The Cleo Harmony application uses Rhino (http://www.mozilla.org/rhino), which is an open source, pure Java, JavaScript engine, to interpret and compile JavaScript source files into temporary Java classes for execution. Visit https://developer.mozilla.org/en/Rhino_JavaScript_Compiler.
See the API javadocs for examples and a description of the methods and functions available from within JavaScript (refer specifically to the ISessionScript class javadoc). The methods include the ability to run other action commands within JavaScript and writing to debug or the system log. These methods, when combined with JavaScript, make it possible to have complex sequences or decisions that would not be possible using Commands actions alone.
For Commands, an action consists of one or more commands that are to be run sequentially as a group. You can choose to have one action that does ALL sending and receiving, or you can choose to separate sending and receiving into two or more actions, potentially if sends and receives are not to be scheduled at the same intervals.
*HTTP derivatives like AS2, EBICS, ebXML, RNIF and WS generally only support PUT.
The actual supported set of commands and their syntax is further dependent on the host type. For more information, see the section specific to the host type in question.
FTP | HTTP* | SSH FTP | OFTP | MQ | SMTP | HSP | MLLP | Purpose | |
---|---|---|---|---|---|---|---|---|---|
CONNECT | X | X | X | Connect (login) to the host | |||||
PUT | X | X | X | X | X | X | X | X | Send one or more files to the host |
GET | X | X | X | X | X | X | Receive one or more files from the host | ||
DIR | X | X | X | X | Get a directory listing of available files from the host | ||||
CD | X | X | Changes the current directory on the host | ||||||
CONFIRM | X | Confirm, on the host, receipt of one or more files | |||||||
DELETE | X | Delete one or more files on the host | |||||||
REQUEUE | X | Requeues one or more previously received files on the host | |||||||
QUOTE | X | X | X | Send a raw command to the server | |||||
SITE | X | Send a site specific command to the server | |||||||
TYPE | X | Sets file data type to ASCII or BINARY |
FTP | HTTP* | SSH FTP | OFTP | MQ | SMTP | HSP | MLLP | Purpose | |
---|---|---|---|---|---|---|---|---|---|
SET | X | X | X | X | X | X | Change an action property value | ||
CLEAR | X | X | X | X | X | X | Clear an action string property | ||
SYSTEM | X | X | X | X | X | X | Execute a local system command | ||
WAIT | X | X | X | X | X | X | Pause | ||
LCOPY | X | X | X | X | X | X | Copy local files | ||
LDELETE | X | X | X | X | X | X | Delete local files | ||
LREPLACE | X | X | X | X | X | X | Replace bytes in local files |