@RuleType(name="nuclos.ruletype.communicationrule.name", description="nuclos.ruletype.communicationrule.description") public interface CommunicationRule<C extends CommunicationContext>
CommunicationRule
is the interface that should be used to make an rule
applicable for Communication-Events.
Classes implementing this interface can be attached to communication ports. In case of executing a rule the method communicate is called.
Modifier and Type | Method and Description |
---|---|
void |
communicate(C context)
CommunicationContext is the context providing all custom - relevant attributes and methods. |
java.lang.Class<C> |
communicationContextClass()
This method describes the type of communication your rule is looking for.
|
java.lang.Class<C> communicationContextClass()
PhoneCallNotificationContext
when you want to handle phone calls only.
Use CommunicationContext
if your rule should be called on all events the port sends.CommunicationContext
void communicate(C context) throws BusinessException
CommunicationContext
is the context providing all custom - relevant attributes and methods.context
- of at least CommunicationContext
BusinessException
Copyright © 2024. All rights reserved.