Enqueue

Enqueues a message to a named server internal queue.

To use enqueue, issue the command:

enqueue <flowName> [<input> [-x | -f]]] [-map pairs…] 

where:

flowName

Is the name of the flow. The flow must have been published to the system area of the configuration under which it is to be run.

input

Is the input to be supplied to the flow. The input can be in flat form (not parsed into XML) or in XML. The -x (default) or -f switches set the type. If the input is flat it will be passed as a string in Unicode, and not in byte form. Input specification is subject to iFL operation. If the input is omitted, a standard signal message will be passed to the flow. You can use the _file() iFL function to load the contents of a file to be passed to the flow.

-map pairs

Adds token=value pairs to the standard signal document if used, as the parameter map. The pairs will also be set as DOC level special registers in the execution environment. This must be the last switch on the line, and all tokens that follow it are considered as token=value pairs. The = sign and commas are optional.

The queue must have been started prior to this command being executed, however it may have been stopped at the time the command is executed. Processing of the queued message will proceed once the queue is restarted.

The message is executed asynchronously under the configuration of the queue channel.

The format of the standard signal is shown in the flow command.


iWay Software