We've decided to implement the ProcessOrder component with a business state machine.
我们决定使用业务状态机来实现ProcessOrder组件。
Hence, the design pattern for invoking a human task from the business state machine is as follows.
因此,从业务状态机调用人工任务的设计模式如下所示。
When a caller invokes the purchase operation, the business state machine framework does the following.
当调用者调用购买操作时,业务状态机框架执行以下操作。
We mentioned in the previous article that a business state machine is a special type of business process.
在上一部分中曾经提到,业务状态机是一种特殊类型的业务流程。
The business state machine design is based on the states of the order and the transitions between those states.
业务状态机的设计基于订单的各个状态和这些状态之间的转换。
Therefore, the business state machine actually invokes a long-running BPEL process that in turn calls the human task.
因此,业务状态机实际上是调用一个长时间运行的BPEL过程,而该过程进而调用人工任务。
Our current design does not support order cancellation, so we must first add a Canceled state to the business state machine.
我们当前的设计不支持订单取消,因此必须首先向业务状态机添加一个Canceled状态。
However, our order business state machine is still active and running, and is currently waiting in the Building order state.
但是,我们的订单业务状态机仍处于活动状态并在运行,目前正在BuildingOrder状态中等待。
It receives the orderId from the business state machine and immediately calls the inline ApproveOrderTask human task activity.
它从业务状态机接收orderid,并立即调用内嵌ApproveOrderTask人工任务活动。
A business state machine is an event-driven business transaction that defines a set of states for a given part of the application.
业务状态机是事件驱动的业务事务,该业务事务定义了应用软件中给定部分的一组状态。
The business state machine provides the ability for a condition to call (invoke) another component to perform the condition check.
对于某个条件,业务状态机可以调用另一组件来执行条件检查。
This serves as the callback mechanism we were missing when trying to invoke the human task directly from the business state machine.
这相当于一个回调机制,它在我们从业务状态机直接调用人工任务的设计方法中是没有的。
It is a component in a module just like the others we have seen, such as a business process, business state machine or business rules.
它是模块中的一个组件,就像我们已看到过的其他组件一样,如业务流程、业务状态机或业务规则。
After the human task is completed, the BPEL process will invoke the business state machine, and the state machine logic will continue.
在人工任务完成之后,BPEL过程将调用业务状态机,并且状态机逻辑将继续执行。
A lifecycle model for governed metadata USES a business state machine to describe the lifecycle states and the transition between them.
对于被治理的元数据,生命周期模型使用一个业务状态机来描述生命周期状态和它们之间的转换。
You can now query business state machine variables including the display name of the current state as well as correlation set information.
现在,您可以查询业务状态机变量,包括当前状态的显示名称以及相关集信息。
For those who are familiar with UML, a business state machine is a subset of a UML state machine and is more appropriate for business users.
对于那些熟悉uml的用户,业务状态机是UML状态机的子集,而且它更适合于业务用户。
The BPEL process will immediately take the response and forward it to the callback operation approvalResponse on the business state machine.
BPEL过程将立即接受该响应,并将其转发到业务状态机上的回调操作approvalResponse。
It is filled in by the business state machine from the operation and made available to the conditions and actions associated with the operation.
它由业务状态机从操作中填入,并用于与该操作相关的条件和操作。
From the design and practice perspective, the first thing that needs to be determined is how the business state machine and human task will interact.
从设计和实践的角度来看,需要确定的第一件事是业务状态机与人工任务如何进行交互。
A business state machine is a special type of business process because it is event driven, and its actions depend on the current state of the process.
业务状态机是一种特殊的业务流程类型,因为它是事件驱动的,其操作取决于流程当前的状态。
This would mean the business state machine is between states and thus would not be able to accept other operations, such as a request to cancel the order.
这意味着业务状态机始终处于两种状态之间,因此无法接受诸如请求取消订单之类的其他操作。
The business state machine will invoke a BPEL process, which will include an inline human task activity (why this needs to be inline will be discussed later).
业务状态机调用BPEL过程,该过程包括一个内嵌的人工任务活动(为什么需要将人工任务活动内嵌到该过程中将在下文讨论)。
A business state machine is another programming metaphor that a business analyst can create with graphical tools, yet executes in a process choreography engine.
业务状态机(business state machine)是业务分析师可以通过图形工具创建流程的另一个编程框架,并且在流程设计引擎中执行。
Whether you are creating a BPEL process, a business state machine, or any of several other types of components, you need to define custom expressions and behavior.
无论您正在创建一个BPEL过程,还是一个业务状态机,或者是几种其他类型组件中的任意一种,您都需要定义自定义表达式和行为。
As with most WebSphere Integration Developer components, authoring a business state machine means defining both its interface (or interfaces) and its implementation.
与大多数WebSphereIntegrationDeveloper组件一样,编写一个业务状态机意味着定义其接口及实现。
If the manager approves the order, the business state machine will transition to the Approved state and await shipment. For the "approve" condition the Java snippet is.
如果经理批准订单,则业务状态机将转换到Approved状态并等待发送。
If a workflow process is a verb, then a business state machine is a noun representing a thing, such as a purchase order, trouble ticket, or insurance policy application.
如果工作流过程是一个动词,那么业务状态机就是一个表示事物的名词,例如订购单、故障单或保险单应用程序。
Now that the business state machine is back in the Building Order state, the order amount can be changed (using updateOrder) and the order operation will try again.
现在,业务状态机返回到BuildingOrder 状态,在这里可以更改订单金额(使用updateOrder),然后重新尝试订单操作。
In this way the business state machine can initiate the human task during one of its operations and then, via a callback, process the approval decision from the human task.
这样,业务状态机便可以在它的某个操作过程中启动人工任务,然后通过回调处理来自人工任务的approval决定。
应用推荐