Comment on page
Joule provides a flexible and extendable model of component development which includes executing external scripts or defined expression within the use case DSL.
expression: salary + bonus + pensionContribution
expand all: true
The below DSL definition will load
totalCompensationCalc.jsfile in to the scripting engine, execute the
totalCompensationCalcwith the result as
totalCompensationbeing added to the the StreamEvent object.
response attribute: totalCompensation
Simple example which demostrates the key capability.
return salary + bonus + pensionContribution;
The following languages are supported using external file execution. Currently only a single langauge is supported, however there is work underway to extend this to more languages.