I've figured out a way of doing this an it's to pass the parameter to a hidden text object and then retrieve it from there
var aipids = document.form.AIPs.value
<INPUT name="AIPs" type="hidden" value=${aipid}>
Reply to this message by going to Community
Start a new discussion in jBPM at Community