Export (0) Print
Expand All
Expand Minimize

Actions Element (WorkflowInfo)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements

Microsoft SharePoint Foundation 2010 provides a number of default actions to a declarative, code-free workflow editor, such as Microsoft SharePoint Designer 2010, 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 who is creating the workflow indicates that all workflow actions should be executed in parallel, the string that is 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 SharePoint Foundation 2010. This value cannot be overridden in a custom .ACTIONS file.

Sequential

Required text. If the user who is creating the workflow indicates that all workflow actions should be executed in sequence, the string that is 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 SharePoint Foundation 2010. 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 appear 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:
© 2014 Microsoft