Parameters Element (WorkflowInfo)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
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.
Definition
<Conditions>
<Condition>
<Parameters>
<Parameter />
</Parameters>
</Condition>
</Conditions>
<Actions>
<Action>
<Parameters>
<Parameter />
</Parameters>
</Action>
</Actions>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
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>