public interface Channel
A channel provides a mechanism to send objects from the working memory to some external process or function. For instance, a channel can be used to inform some piece of code that an object matches a rule.
To create a channel, implement the interface and register it with the KieRuntime:
... ksession.registerChannel("my-channel", new MyChannelImpl());
Channels are invoked from the consequence side of a rule:
when ... then channels["my-channel"].send(...);
Modifier and Type | Method and Description |
---|---|
void |
send(Object object)
Sends the given object to this channel.
|
void send(Object object)
object
- Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.