To call a GN4 WindowsWorkflow from the client menu, use the following syntax as in this example that calls the wf_Upload.xml GN4 WindowsWorkflow:
<l:ShellMenuItem Header="Upload Any Content / No Converting..." CommandParameter="ExecuteWorkflow" Parameters="wf=upload" />
Note that ExecuteWorkflow is the name of a scripting method which calls the WindowsWorkflow specified by the Parameters attribute of the menu command.
The Parameters attribute is a string that contains both the mandatory name of the WindowsWorkflow to execute ('wf=') and the other optional parameters to pass to the WindowsWorkflow ('ids=', 'pars=').
Another example:
<l:ShellMenuItem Header="Upload documents" CommandParameter="ExecuteWorkflow"
Parameters="wf=ImportDocuments&pars=rootFolderPath:\Archive\InDesign;imageThumbnailSize:100;imagePreviewSize:300;pageThumbnailSize:120;pagePreviewSize:400;thumbnailQuality:80;previewQuality:80;" />
The syntax of the Parameters string is similar to the menu configuration in GNPortal:
wf= the name of the WindowsWorkflow to execute
ids= the ids of the GN4 objects
pars= the name:value pairs of custom parameters
autoCloseMode= indicates if the WindowsWorkflow panel should be automatically closed when the WindowsWorkflow execution ends
AutoCloseMode
The possible values for autoCloseMode are as in GNPortal (see http://forum.teradp.com/topic.asp?TOPIC_ID=458):
•0 for "No", i.e. do not close automatically the panel when the WindowsWorkflow ends and display always the WindowsWorkflow execution report (list of objects created/modified and log messages generated by the WindowsWorkflow)
1 for "Yes", i.e. close automatically the panel when the WindowsWorkflow ends and never display the WindowsWorkflow execution report
2 (default) for "WhenNoLog", i.e. close automatically the when the WindowsWorkflow ends only if there is no log message to be displayed
Note that the default for autoCloseMode is different from GNPortal one: 2 instead than 0.
Here is an example of a menu entry definition that calls a WindowsWorkflow always displaying the final report (i.e. not closing automatically the panel):
<l:ShellMenuItem Header="Archive" CommandParameter="ExecuteWorkflowOnObjects" Parameters="wf=archiveObjects&autoCloseMode=0" />