|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Default 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.
The Default element is a container for other elements and has no definable attributes.
The Default element is only read from the default WSS.ACTIONS file and cannot be overridden with a custom .ACTIONS file.
When you create workflows using a declarative, code-free workflow editor, such as Microsoft Office SharePoint Designer 2007, the .ACTIONS file that is installed on the server is combined into a single list of items and displayed to the workflow editor. Windows SharePoint Services 3.0 then searches for existing workflow conditions. If Windows SharePoint Services 3.0 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=220.127.116.11, 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>