As EasyVIPER is an extensible engine, it provides a way to implement new behaviours, in addition of the existing ones.
To create a new behaviour, you have to extend the com.ebmwebsourcing.easyviper.core.service.extended.behaviour.api.ExtendedBehaviour interface.
A good way to process is to perform the following steps:
- Create an interface that extends the ExtendedBehaviour interface:
MyBehaviour.java
- Create an implementation that implements this interface and extends the utility abstract class AbstractExtendedBehaviourImpl:
MyBehaviourImpl.java
The main method to fill is executeOnInactive(). It is the one that will be executed when the execution token crosses over the behaviour.