We will use the OnEvent element in the sample.
我们将在样例中使用OnEvent元素。
Fill in the OnEvent element name as shown in Figure 17.
如图17所示填充onevent元素名称。
To define an OnEvent event handler, you have to specify a message.
要定义一个OnEvent事件处理程序,必须指定一条消息。
You then pass in an anonymous function (closure) to the onEvent property.
然后将一个匿名函数(closure)传入到onevent属性。
The receive event is indicated by the presence of the handled and onEvent attributes.
接收事件是由handled和onEvent属性指定的。
Multiple onEvent and onAlarm events can occur concurrently and they are treated as concurrent activities.
多个onEvent和onAlarm事件可以并发出现,它们将作为并发活动对待。
An OnEvent element is equivalent to a receive activity, so you need a corresponding operation in one of the process's interfaces.
OnEvent元素相当于一个接收活动,因此在流程的某个接口需要相应的操作。
An event handler looks a lot like an exception handler, except that it starts running when an OnEvent element receives a call to the corresponding operation.
事件处理程序非常类似于异常处理程序,只不过它在OnEvent元素接收到对相应操作的调用时才运行。
An event handler looks a lot like an exception handler, except that it starts running when an OnEvent element receives a call to the corresponding operation.
事件处理程序非常类似于异常处理程序,只不过它在OnEvent元素接收到对相应操作的调用时才运行。
应用推荐