Share via


Parameters 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.

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

Parameter

Parent Elements

None

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>

See Also

Tasks

.ACTIONS File Example

Concepts

Creating Declarative, No-Code Workflow Editors

Default Workflow Actions

Default Workflow Conditions