Implementing the final step
We shall now implement a rule that calculates the total and one that create the subscription we propose to the end user.
In the rule above, we have to use custom code as when working with java Bigdecimal class (which we shall use when working with financial amounts) the standard functions do not work.
In the second rule, we use the definitive price we create before. in the picture shown below, we can see an example of the test server we shall present in the next tutorial
Copy link