Thats great. Thanks for taking the time to put that together.
One last thing, when I use a link to submit the information to processLaunch it goes straight into the workflow. When I use a button it produces the processLaunch page and shows an OK and Cancel button.
How do I get the button to act the same as the link i.e. go straight into the workflow without the need to confirm again?
<Display class='Button'>
<Property name='label' value='Launch wf'/>
<Property name='postURL' value='user/processLaunch.jsp?newView=true&id=Test WF&op_var1=Button&op_var2=Test'/>
<Property name='command' value='Save'/>
</Display>
Adding the command property as 'Save' should bypass the second confirmation screen.