This invoke activity calls the event handler.
此调用活动将调用事件处理程序。
ReviewStartRequest. Input variable to the event handler.
reviewStartRequest事件处理程序的输入变量。
Part 2: What actions does the event handler have to take?
第2部分:事件处理程序必须进行何种操作?
Within the event handler, be sure to accomplish the following.
在事件处理程序内,请确保完成以下事项。
If a review is finished, the event handler decrements this variable.
如果审阅完成,事件处理程序会对此变量进行递减。
Listing 3 shows the code snippet getting the event handler by a process instance ID.
清单3显示的代码片段根据流程实例ID获取事件处理程序。
WS-BPEL specifies another construct to deal with external events: the event handler.
WS - BPEL指定了另一个构造来处理外部事件:事件处理程序。
Control passes immediately to the event handler and doesn't return until it's done executing.
控制立即传到事件处理器,并且不会返回,除非处理完成。
Another variation deals with the activities that are contained in the body of the event handler.
另一个模式变体处理事件处理程序体中包含的活动。
This might include the event hooks, the event handler, the error methods, and the timer methods.
这可能包括事件关联函数、事件处理函数、错误方法和计时器方法。
Multiple instances of the event handler may be active, while variables VP and VM have only one instance.
事件处理程序可能有多个实例处于活动状态,而变量VP和VM只能具有一个实例。
If the global scope requires the result of the event handler, set the result in the global result variable.
如果全局范围要求使用事件处理程序的结果,请在全局结果变量中设置该结果。
This article described how to design processes to implement the cancellation function with the event handler.
本文描述如何设计使用事件处理程序来实现取消操作的流程。
The innocent-looking parse method triggers parsing of the XML document which, in turn, calls the event handler.
看似无关的parse方法触发对XML文档的语法分析,这导致了调用事件处理器。
The cancellation action is regarded as an inbound message that can trigger the event handler of the process scope.
取消动作被视为一条入站消息,可以触发流程作用域的事件处理程序。
Figure 8 shows a fragment of code from the event handler that responds to a user's request to change languages.
图8显示事件处理程序中响应用户的更改语言请求的代码片段。
The rationale for this is that the event handler must be able to access the variable that holds the incoming message.
这样做的根本原因是,事件处理程序必须能够访问保存传入消息的变量。
Then, Seam passes the entity bean into the event handler session bean, which is also created by Seam, for processing.
然后,Seam将实体bean传入同样被Seam构造的事件处理器会话bean中来处理。
Composite activities like flow or sequence are especially useful to specify the actions taken within the event handler.
流或序列之类的组合活动在指定事件处理程序内所进行的操作时尤为有用。
Notice that the event handler receives the element name, namespace and attribute lists as parameters from the parser.
请注意,事件处理器接收元素名称、名称空间和属性列表作为来自语法分析器的参数。
In this case, instead of invoking the receive activity in the main scope, we have to raise a fault in the event handler.
在这种情况下,不要调用主范围中的接收活动,而必须在事件处理程序中引发一个错误。
When it finds a price-quote element, the event handler extracts the vendor name and the price from the list of attributes.
当事件处理器发现price - quote元素时,它从属性列表中抽取供应商名称和价格。
This is an example of immediate event handling, since the whole form is not validated before the event handler is invoked.
这是一个即时事件处理的例子,因为整个表单没有在调用事件处理程序之前进行有效性验证。
By doing so, the loop in the main scope and logic in the event handler controls the final number of event handler instances.
这样,主范围内的循环和事件处理程序中的逻辑就可以控制事件处理程序的最终数目。
Part 1 defines the conditions under which an event handler is to be invoked; that is, it defines the type of the event handler.
第1部分定义要调用的事件处理程序的条件;即,它定义事件处理程序的类型。
Let's assume that an instance of the event handler detects that an additional instance of the same event handler has to be started.
让我们假定事件处理程序的实例检测到必须启动相同事件处理程序的其他实例。
The name of the event handler must match the name declared in the definition file in which the name is user definable during definition time.
事件处理函数名必须与定义文件中的名称匹配,而此名称由用户定义。
For example, within the event handler, calculation can be performed or strings concatenated for data sent along with the asynchronous request.
例如,在事件处理程序中,可以对随异步请求一同传递的数据执行计算或字符串连接操作。
The first block contains the event handler to initialize the application (onload) and the initialization of the database, as shown in Listing 3.
第一段包含初始化应用程序的事件处理函数(onload)和数据库初始化,如清单3所示。
Only when the event handler has finished its business logic, it updates the global variable result in order to return the result to MainScope.
只有事件处理程序完成了其业务逻辑后,它才会更新全局变量result,以将结果返回到MainScope。
应用推荐