interface Script

cocoon
   |
   +--cocoon.Script

The Script object represents the instance of the script currently executed by the Cocoon Flow Layer.

When a Cocoon sitemap contains an entry like <map:call function="myFunction"/>, the flow engine will invoke the myFunction function in a user-defined subclass of this interface.

For example, using the JavaScript flow, attributes and operations of this instance can be retrieved, set or called prefixing them with the keyword this., or without any prefix, as in JavaScript the current script defines also Global attributes and operations.


Attribute Summary
cocoon The current Cocoon instance associated with this script.
log The current Log instance used for logging from this script.

Attribute Details

cocoon

readonly attribute cocoon::Cocoon cocoon
The current Cocoon instance associated with this script. (suggested by Stefano Mazzocchi)

log

readonly attribute cocoon::Log log
The current Log instance used for logging from this script. (suggested by Sylvain Wallez).