Поделиться через


Элемент Parameters (элемент Condition)

(Элемент Conditions) (Элемент WorkflowInfo) (Действие4)

Область применения: SharePoint Server 2013

Контейнер для элементов Parameter , содержащий описания параметров в сигнатурах метода Condition . Этот элемент имеет тип parametersType.

Применение

    <Conditions>
        <Condition>
            <Parameters>
                <Parameter />
            </Parameters>
            <RuleDesigner />
        </Condition>
    </Conditions>

Сведения об элементе

Тип элемента

parametersType

Namespace

Файл схемы

Actions4.xsd

Определение

    <xs:element name="Parameters" type="parametersType" minOccurs="1"     maxOccurs="1">
    </xs:element>

Элементы и атрибуты

Если в схеме определяются конкретные требования, например sequence, minOccurs, maxOccurs и choice, см. раздел определений.

Родительские элементы

Элемент

Тип

Описание

Condition

Дочерние элементы

Элемент

Тип

Описание

Параметр

Атрибуты

Нет.

Пример

В следующем примере показано создание элемента Parameters таким образом, чтобы обработчик рабочего процесса мог взаимодействовать с кодом сборки.

    <WorkflowInfo>
       <Conditions>
          <Default>…</Default>
          <Condition>…</Condition>
          <Parameters>
             <Parameter />
          </Parameters>
       </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=neutral"
                  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>