Package org.nuclos.api.rule
Interface CommunicationRule<C extends CommunicationContext>
@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.
- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionvoid
communicate
(C context) CommunicationContext
is the context providing all custom - relevant attributes and methods.This method describes the type of communication your rule is looking for.
-
Method Details
-
communicationContextClass
This method describes the type of communication your rule is looking for. For example, usePhoneCallNotificationContext
when you want to handle phone calls only. UseCommunicationContext
if your rule should be called on all events the port sends.- Returns:
- class of at least
CommunicationContext
-
communicate
CommunicationContext
is the context providing all custom - relevant attributes and methods.- Parameters:
context
- of at leastCommunicationContext
- Throws:
BusinessException
-