Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Parameters Element (WorkflowInfo)

Last modified: February 28, 2011

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements

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>

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>
Show:
© 2015 Microsoft