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


Элемент Parameters (WorkflowInfo)

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

Контейнер для всех элементов Parameter, не содержащий определяемых атрибутов. Включает описания параметров в сигнатуре метода условия или действия.

Элемент Parameters относится к сложному типу элементов и может использоваться с элементами Actions и Conditions для определения их параметров.

Определение

<Conditions>
  <Condition>
    <Parameters>
    <Parameter />
    </Parameters>
  </Condition>
</Conditions>
<Actions>
  <Action>
    <Parameters>
      <Parameter />
    </Parameters>
  </Action>
</Actions>

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

В разделах ниже приводится описание атрибутов, дочерних и родительских элементов.

Атрибуты

Нет

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

Параметр

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

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>

См. также