第二层的细节是选择活动类型。
图5.选择活动的提示对话框。
选择活动的局域连接,然后打开属性。
Select the active local area connection, and then open the properties.
在这里我们选择活动状态。
与选择和接收活动都相关的活动是接收选择活动。
Related to both the choice and receive activities is the receive choice activity.
简单的点击右上角的下拉菜单来选择活动的ID。
Simply click the drop-down menu in the upper-right corner to choose your current active ID.
简单地说,选择活动允许您确定要运行的下一个活动集。
Simply put, a choice activity lets you decide the next set of activities that will run.
流程在到达接收选择活动时将停止执行,等待接收消息。
When a process reaches a receive choice activity, execution stops and waits to receive a message.
参与者应综合自身能力,慎审选择活动形态。
Participats should choose proper forms of activities based on their own abilities.
图17演示如何从列表中选择活动,而不必手工拖动它。
Figure 17 shows how you can select the activity from a list, rather than having to draw it manually.
当你能选择活动的时候,选出一个会让你的生活更美好的来实践。
Whenever you have a choice of activities to do, pick the one that will make for a better story.
接收选择活动(也称为挑选)在形式和工作方式上更像选择活动。
A receive choice activity (also known as a pick) looks and works a lot like a choice activity.
下列步骤将为您的逻辑在选择活动中可以采用的每个路径填写活动。
The next steps fill in the activities for each path that your logic can take in the choice activity.
默认情况下,可以选择活动在集群中的哪台服务器上运行。
You could pick which server in the cluster that an activity would run on by default.
图6显示了一个称为OrderAction的接收选择活动的示例。
Figure 6 shows an example of a receive choice activity called OrderAction.
我们已了解了如何使用接收活动和接收选择活动来接受对流程的调用。
We saw how to use receive and receive choice activities to accept calls made to a process.
然后在任何一个层级上,您可以为您的目的选择活动、任务和任务中的各个步骤。
At any level, you then choose the activities, tasks, and steps within the tasks, appropriate to your purpose.
如果流程要按照正常方式执行,则接收或选择活动必须执行一次,且仅执行一次。
A receive or pick activity must be executed once and only once if a process is to be executed normally.
流程接收的第一个操作会首先执行,就像普通的选择活动,并且流程会按照其路径运行。
The first operation the process receives wins, just like a plain choice activity, and the process follows its path.
与整个流程关联的事件处理程序将在创建接收或选择活动接收到其传入消息时立即启用。
Event handlers that are associated with the whole process are enabled as soon as the creating receive or pick activity has received its incoming message.
与接收或选择活动类似,此类事件处理程序可以对外部事件进行响应,从而提高其动态性。
Like pick or receive activities, such event handlers can react to external events, and make them more dynamic.
选择活动包含case元素,这些case元素由计算结果为True或False并且后跟一系列活动的表达式。
A choice activity contains case elements that consist of an expression that evaluates to either true or false, followed by a sequence of activities.
选择活动也可以包含Otherwise元素,它是在所有case元素的计算结果都不为True时所采用的路径。
A choice activity can also contain an otherwise element, which is the path that is taken when no case element evaluates to true.
如果选择某个带有多个操作界面的WSDL,则会生成一个具有WS - BPEL选择活动的流程,而不是只有一个简单的接收活动。
If you select a WSDL with multiple operations interfaces, the process is generated with a WS-BPEL choice activity, rather than a simple receive.
请注意,WS-BPEL 将在发送到createInstance属性设置为yes 的接收或选择活动的消息送达时隐式地创建流程。
Note that WS-BPEL creates processes implicitly when a message arrives that is directed to a receive or pick activity with the createInstance attribute set to yes.
在前面的选择活动部分中,我们在示例中已提到,如果订单大小不在每个case元素涵盖的范围内,则会抛出OrderSizeFault 错误。
Earlier in the choice activity section, we mentioned in the example that an OrderSizeFault would be thrown for order sizes that weren't in the range covered by each case element.
通过从面板中选择活动并将其放置到业务流程编辑器画布上,或右键单击画布并add - [activitytype],可以将活动添加到流程。
You can add activities to a process by selecting them from the palette and dropping them onto the business process editor canvas, or right-clicking on the canvas and selecting add - [activity type].
因此,BusinessProcessChoreographer有如下强制要求:在一个流程实例内,最多一个具有相同端口类型和操作的接收或选择活动或者事件处理程序处于活动状态。
Therefore, Business process Choreographer mandates that within one process instance at most one receive or pick activity or event handler may be active with the same port type and operation.
如果下雨或是天气寒冷,就选择室内活动。
如果下雨或是天气寒冷,就选择室内活动。
应用推荐