다음을 통해 공유


Default Element (WorkflowInfo)

Applies to: SharePoint Foundation 2010

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

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

Attributes

Attribute

Description

ItemKeyType

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

Child Elements

RuleDesigner

Parent Elements

Conditions

Remarks

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.

Example

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>

See Also

Concepts

WorkflowInfo Schema and WorkflowActions Schema Overview

Creating Declarative, No-Code Workflow Editors

Other Resources

Conditions Element