Parameters Element (WorkflowInfo)
Applies to: SharePoint Foundation 2010
Container for all Parameter elements, and contains no definable attributes. Includes the descriptions of the parameters in a condition or action method signature.
The Parameters element is a complex element type and can be used with both Actions and Conditions elements to define their parameters.
<Conditions>
<Condition>
<Parameters>
<Parameter />
</Parameters>
</Condition>
</Conditions>
<Actions>
<Action>
<Parameters>
<Parameter />
</Parameters>
</Action>
</Actions>
Attributes
None
Child Elements
Parent Elements
Example
The following example demonstrates how to construct the Parameters element so that the workflow engine can interact with the assembly code.
<WorkflowInfo>
<Conditions>
<Default>…</Default>
<Condition>…</Condition>
<Parameters>
<Parameter />
</Parameters>
</Conditions>
<Actions Sequential="then" Parallel="and">
<Action Name="Update my custom SharePoint list"
ClassName="CustomActivities.OrderListFunctions"
Assembly="CustomActivities,
PublicKeyToken=71e9bce111e9429c,
Version=1.0.0.0,
Culture=neutral"
Category="My Custom Actions"
CreatesTask="true"
CreatesInList="UpdateList"
AppliesTo="all"
ListModeration="false"
UsesCurrentItem="true">
<RuleDesigner Sentence="Update %1">
<FieldBind Field="UpdateList"
Function="UpdateOrderList"
DesignerType="ChooseListItem"
ID="1"
Text="My Custom List">
</FieldBind>
</RuleDesigner>
<Parameters>
<Parameter Type="System.String, mscorlib"
Direction="In"
Name="UpdateList" />
</Parameters>
</Action>
</Actions>
</WorkflowInfo>