Parameter 元素(条件元素)
(Conditions 元素) (WorkflowInfo 元素) (Action4)
适用于:SharePoint Server 2013
Parameter 元素的容器,其中包含 Condition 方法签名中参数的说明。 此元素的类型为 parametersType。
用法
<Conditions>
<Condition>
<Parameters>
<Parameter />
</Parameters>
<RuleDesigner />
</Condition>
</Conditions>
元素信息
元素类型 |
|
命名空间 |
|
架构文件 |
Actions4.xsd |
定义
<xs:element name="Parameters" type="parametersType" minOccurs="1" maxOccurs="1">
</xs:element>
元素和属性
如果架构定义了特定要求(如 sequence、 minOccurs、 maxOccurs 和 choice),请参阅定义部分。
父元素
元素 |
类型 |
说明 |
---|---|---|
子元素
元素 |
类型 |
说明 |
---|---|---|
Attributes
无。
示例
下面的示例演示如何构造 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>