A WindowsWorkflow call from a menu entry in the browser interface can look something like this:
<menuItem
text="Save image files"
iconUrl="do.ashx?Cmd=Icon&Name=tlb_Import&Size=16&Default=t"
navigateUrl="javascript:this.menuWebPart.showDialog
('WFForm.aspx?wf=saveImage&pars=destDir:c:/temp&
ids=' + this.menuWebPart.selectedIdList(),null,820,650);"
enable="Some"/>
Looking at the component parts:
WFForm.aspx? |
the command to call a WindowsWorkflow |
wf=saveImage |
call a WindowsWorkflow in the database named ‘saveImage’ |
pars=destDir:c:/temp |
passes one parameter named ‘destDir’ with a value of ‘c:/temp’ |
ids=' + this.menuWebPart.selectedIdList() |
a list containing the ids of all the selected objects to the root element of the WindowsWorkflow |
NOTE: Only parameters and ids can be passed to a WindowsWorkflow through a menu entry in the browser.