Parameter Element (WorkflowActions)
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.
Used to describe the input and output parameters for a custom Actions or Conditions method call.
<Conditions>
<Condition>
<Parameters>
<Parameter />
</Parameter>
</Condition>
</Conditions>
<Actions>
<Action>
<Parameters>
<Parameter />
</Parameters
</Action>
</Actions>
Attributes
Attribute |
Description |
---|---|
Type |
Required String. Partially qualified .NET data type. Values are not case sensitive. Example: System.Object, mscorlib |
Direction |
Optional text. Specifies an input or output parameter. Valid values are In and Out. Values are not case sensitive. |
Name |
Required text. Used to associate the FieldBind element with the parameter. Values are not case sensitive. |
InitialValue |
Optional text. Used to specify the default initial value that is passed to the parameter. Values are not case sensitive. |
Child Elements
None |
Parent Elements
Example
The following example demonstrates how to construct a Parameter element so that the workflow engine can interact with the assembly code.
<WorkflowInfo>
<Conditions>
<Default>…</Default>
<Condition>…
<Parameters>
<Parameter />
</Parameters>
</Condition>
</Conditions>
<Actions Sequential="then" Parallel="and">
<Action Name="Update my custom SharePoint list"
ClassName="CustomActivities.OrderListFunctions"
Assembly="CustomActivities"
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>