Parameters Element (WorkflowConfig)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Represents a collection of the parameters for the workflow initiation form.
For each Field Element (Field) element contained in the Fields Element (WorkflowConfig) element, there must be a corresponding Parameter Element (WorkflowConfig) element, in the Parameters element, with a matching Name attribute. The Parameter Element (WorkflowConfig) element specifies the System data type of the field.
The Parameter Element (WorkflowConfig) element also represents a workflow variable of the same name. When the user submits the workflow initiation form, Windows SharePoint Services passes the value specified for each parameter to the workflow instance as part of the InitiationData property.
Use the URL attribute of the Initiation Element (WorkflowConfig) element to specify the path to the workflow initiation form for the workflow.
The following example Initiation element contains an URL attribute that specifies the location of the workflow initiation form to use for this workflow.
The element also contains a Fields element, which in turn contains a Field element that defines the single data field on the initiation form. Note that the Parameters element contains a corresponding Parameter element, with a matching Name attribute value, that specifies the data type of the Field element.
This example has been edited for clarity.
<Initiation URL="Workflows/Notify Me/Notify Me.aspx"> <Fields> <Field Name="Reason_for_Review" … DisplayName="Reason for Review" … > <Default>Standard review of new documents</Default> </Field> </Fields> <Parameters> <Parameter Name="Reason_for_Review" Type="System.String" /> </Parameters> </Initiation>