This documentation is archived and is not being maintained.

Actions Element (WorkflowActions)

Windows SharePoint Services 3

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.

Windows SharePoint Services 3.0 provides a number of default actions to a declarative, code-free workflow editor, such as Microsoft Office SharePoint Designer 2007, that can be used to build workflows that address common business needs. However, complex business rules can sometimes require customized actions. You can use the Actions element to add custom workflow activities and expand the workflow actions available to you beyond those that are included in the default list.


<WorkflowInfo>
    <Conditions>...</Conditions>
    <Actions>
        <Action>...</Action>
    </Actions>
</WorkflowInfo>

Attribute

Description

Parallel

Required text. If the user creating the workflow indicates that all workflow actions should be executed in parallel, the string defined in this attribute is used to join the Actions elements in the RuleDesigner sentence.

The default value for this attribute is and (which is defined in the WSS.ACTIONS file) and applies only to the English language version of Windows SharePoint Services 3.0. This value cannot be overridden in a custom .ACTIONS file.

Sequential

Required text. If the user creating the workflow indicates that all workflow actions should be executed in sequence, the string defined in this attribute is used to join the Actions elements in the RuleDesigner sentence.

The default value is then (which is defined in the WSS.ACTIONS file) and applies only to the English language version of Windows SharePoint Services 3.0. This value cannot be overridden in a custom .ACTIONS file.

The following example demonstrates how to construct the Actions element so that parent and child Action elements display correctly in the workflow designer.

<WorkflowInfo>
  <Conditions>…</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=nuetral"
            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: