Freigeben über


Workflowkonfiguration-Schemareferenz

Gilt für: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online-| SharePoint Server 2013

Die Workflowkonfigurationsdatei enthält die Informationen, die erforderlich sind, um eine Workflowvorlage in SharePoint Foundation aus den angegebenen Workflowmarkup- und Regeldateien zu erstellen und sie einer bestimmten Liste zuzuordnen. Information included in the workflow configuration file includes:

  • The workflow markup and rules files to use, including the appropriate version of those files to use.

  • The list to which the workflow should be associated.

  • The task list and history list for the workflow to use.

  • Conditions under which the workflow starts.

  • Workflow initiation form location, data fields, and default values.

Die Workflowkonfigurationsdatei wird als Parameter für die folgenden Methoden des websvcWebPartPages-Webdiensts angegeben. Mit diesen Methoden kann Microsoft SharePoint Designer 2010 deklarative Workflowvorlagen erstellen und diese Workflowvorlagen SharePoint Foundation 2010-Listen zuordnen.

  • ValidateWorkflowMarkupAndCreateSupportObjects(String, String, String, String)

    Verwenden Sie diese Methode, um das Workflowmarkup eines deklarativen Workflows zu überprüfen und optional die Supportobjekte zu erstellen, die für die Ausführung dieses Workflows erforderlich sind.

  • AssociateWorkflowMarkup(String, String)

    Use this method to create a workflow template, and associate that workflow template with the specified SharePoint list.

For more information about creating workflow editors, see Creating Declarative, No-Code Workflow Editors.

The workflow configuration schema contains the following elements:

Beschreibung

Elements have been edited for readability.

Code

    <WorkflowConfig>
      <Template
        BaseID="{68B99644-EDCE-4988-9D11-7FD5CCAE09CC}"
        DocLibID="{74FAE22C-0176-46DF-AA12-988CE79C8889}"
        XomlHref="Workflows/Notify Me/Notify Me.xoml"
        XomlVersion="V3.0"
        RulesHref="Workflows/Notify Me/Notify Me.xoml.rules"
        RulesVersion="V3.0"
      >
      </Template>
      <Association
        ListID="{B8C6FEEA-8066-462E-958D-1B4E90FE1C34}"
        TaskListID="{C64BA541-9D5B-42F3-A989-96F56FD51155}"
        StartManually="true"
        StartOnCreate="true"
      >
      </Association>
      <ContentTypes>
        <ContentType
          Name="Review New Document"
          ContentTypeID=
            "0x0108010086C115D5C5C27B439C22EB22F050B49B00DD9F97273595EA4BA32838A26054BF08"
          Form="/Workflows/Notify Me/Review New Document.aspx"
          Description="Workflow used to review new documents">
          <Fields/>
        </ContentType>
      </ContentTypes>
      <Initiation
        URL="Workflows/Notify Me/Notify Me.aspx">
        <Fields>
          <Field
            Name="Reason_for_Review"
            …
            DisplayName="Reason for Review"
            …
          >
            <Default>Standard review of new documents</Default>
          </Field>
        </Fields>
        <Parameters>
          <Parameter Name="Reason_for_Review" Type="System.String" />
        </Parameters>
      </Initiation>
    </WorkflowConfig>

Siehe auch