Default Element (WorkflowInfo)

Last modified: March 09, 2015

Applies to: SharePoint Foundation 2010

The Default element is a container for other elements and has no definable attributes.

Note Note

The Default element is only read from the default WSS.ACTIONS file and cannot be overridden with a custom .ACTIONS file.


    <Default>
        <RuleDesigner>
            <FieldBind>
                <Option>…</Option>
            </FieldBind>
        </RuleDesigner>
    </Default

Attribute

Description

ItemKeyType

Optional text. The implementation-specific identifier for the default object type.

When you create workflows by using a declarative, code-free workflow editor, such as Microsoft SharePoint Designer 2010, the .ACTIONS file that is installed on the server is combined into a single list of items and displayed to the workflow editor. Microsoft SharePoint Foundation 2010 then searches for existing workflow conditions. If SharePoint Foundation 2010 finds a condition that is not represented by an entry in an .ACTIONS file, the Default element sentence is displayed for that condition.

The following XML demonstrates how to construct a Default element to make it visible to the workflow editor.

<WorkflowInfo Language="en-us">
   <Conditions And="and" Or="or" Not="not" When="If" Else="ElseIf">
      <Condition 
              AppliesTo="list" 
              Assembly="MyWorkflowProject.Workflow1
                        PublicKeyToken=71e9bce111e9429c,
                        Version=1.0.0.0,
                        Culture=neutral" 
              ClassName="MyWorkflowProject.Workflow1.MyClass"
              FunctionName="IsOrderComplete" 
              Name="Check if item in %1 is a complete order"
              Type="Custom"
              UsesCurrentItem="True">
          <RuleDesigner>...</RuleDesigner>
      </Condition>
      <Default>
         <RuleDesigner Sentence="the file type is %1">
            <FieldBind ID=1 Field="_1_" Text="specific type" DesignerType="Type">
               <Option></Option>
            </FieldBind>
         </RuleDesigner>
      </Default
   </Conditions>
</WorkflowInfo>
Show: