Starting a new process
A new instance of a process can be started by using the tw.system.startProcessByName() function.
Getting the current process instance
The current process instance can be retrieved through the TWProcessInstance variable
called tw.system.currentProcessInstance.
Getting the current userid
The current user ID can be retrieved through the TWUser variable
in tw.system.user.
Starting an external application
You can start an external application such as a batch file
or a shell script by performing that task using the JavaScript LiveScript
mechanism.
Working with document attachments
Document attachments can be associated with process instances.
These can be added through coach controls or through programmatic
additions.
Retrieving data from XML
The following examples show you how to pull data out from
an XMLDocument (or any XML type) using the following XML.