yes, this what I was assuming is your use case. So I would suggest to use a domain specific service that will be responsible for calculated based on data inputs and then use dataoutputs to set the result of calculation as process variable
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community