Hi,
I have a process model with a simple start event -> User Task (get 2 inputs) -> Script Task (Validate inputs & and throw exception) -> end task. The script task is to divide the inputs, input1/input2. Say if input2 is 0, rather than getting an divide by zero exception, I would like to throw a BpmnError. The script task that I have is groovy. Please advise how to throw a BpmnError here.
if(execution.getVariable('input2') == 0) {
throw new BpmnError('ERR005ivideByZeroException') // This line doesn't work and throws an error "unable to resolve class BpmnError"
}
Please advise.
specify the fully qualified class name: throw new org.activiti.engine.delegate.BpmnError("BusinessExceptionOccurred")
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.