How can I pass parameters to my delegates which can be later used in my code
You can’t, but you can read the variables from the execution:
public class CustomDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) {
execution.getVariable("myVariable");
}
}
Or if possible you can also write a FlowableFunctionDelegate, see flowable-engine/modules/flowable-dmn-engine/src/test/java/org/flowable/dmn/engine/test/TestCustomFunctionDelegate.java at master · amporsim/flowable-engine · GitHub
It allows you to pass parameters to the function:
${custom:testFunctionName('2015-01-01')}
Regards,
Simon