Parameters are passed to the WindowsWorkflow from a menu entry using the syntax: pars=name1:value1;name2:value2.
For example:
pars=action:remove;prompt:true;title:Un-publish
This URL component passes three parameters named action, prompt and title, with values of ‘remove’, ‘true’ and ‘Un-publish’ respectively.
The pars component in the URL is converted internally to xml when a WindowsWorkflow is called.
Using the above example, the structure of the xml would be:
<root>
<add key='action' value='remove'/>
<add key='prompt' value='true'/>
<add key='title' value='Un-publish'/>
</root>
This xml is available in the Pars property of the root element, that is, the sequential or navigator activity. It is also available to all stylesheets executed within the WindowsWorkflow or operation. It is passed in the internal xsl as the $pars variable. The $pars is available when executing the xsl and also in xpath expressions, e.g.:
<Save
x:Name="SaveImage"
Data="{wf:ActivityBind LoadImage,Path=DataOut}"
Mode="Overwrite"
To="file:///{0}">
<Save.Pars>
<wf:WorkflowParameterBinding
ParameterName="concat($pars/*/add[@key='destDir']/@value,'/',/*/@name)"
Value="{wf:ActivityBind Object,Path=XmlOut}"/>
</Save.Pars>
</Save>