次の方法で共有


RuleDesigner 要素 (WorkflowActions)

最終更新日: 2015年3月9日

適用対象: SharePoint Foundation 2010

この記事の内容
属性
子要素
親要素

複合型の要素。RuleDesigner 要素には、Microsoft SharePoint Designer 2010 などの宣言型でコーディング不要のワークフロー エディターでワークフロー文をレンダリングするのに必要な情報が含まれます。

<Conditions>
  <Default>…</Default>
    <Condition>
    <RuleDesigner>
      <FieldBind>…</FieldBind>
    </RuleDesigner>
  </Condition>
</Conditions>
<Actions>
  <Action>
    <RuleDesigner>
      <FieldBind>…</FieldBind>
    </RuleDesigner>
  </Action>
</Actions>

属性

属性

説明

Sentence

必須の text。ワークフロー エディタに表示される、ワークフロー ルールを示すテキストです。ルール文には、実行時に動的に生成したテキストだけでなく静的なテキストも含めることができます。

%1、%2、などを使用して文に変数を組み込むことができます。各変数は、FieldBind 要素の Id に対応します。ワークフローの設計時にこれらの変数に表示されるテキストは、FieldBind 要素の Text 属性です。

子要素

FieldBind

Option

親要素

なし

以下の XML は、コードフリーのワークフロー エディタに表示できるように RuleDesigner 要素を構築する方法を示しています。

<WorkflowInfo>
  <Conditions>…</Conditions>
  <Actions Sequential="then" Parallel="and">
    <Action Name="Update my custom SharePoint list"
            ClassName="CustomActivities.OrderListFunctions"
            Assembly="CustomActivities"
            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>

関連項目

タスク

.ACTIONS ファイルの例

概念

宣言型のコーディング不要ワークフロー エディタを作成する

既定のワークフロー アクション

既定のワークフロー条件