<bmpmn2:scriptTask id="timerExpire" activity:async="true" name="Execute script" scriptFormat="js" >
<bmpmn2:incoming>SequenceFlow_3</bmpmn2:incoming>
<bmpmn2:script>if{
throw new java.lang.RuntimeException('Camunda Engine Rocks!');
}</bmpmn2:script>
</bmpmn2:scriptTask>
But when I am deploying it inside the camunda engine, I get the following error:
Error while closing command context: org.camunda.bpm.engine.ProcessEngineException: couldn't parse 'diagrams/timer_error_process.bpmn': The prefix "activiti" for attribute "activiti:async" associated with an element type "scriptTask" is not bound.
at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:133)
at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:231)
Any ideas how to make the scripttask to execute asynchronously, and deploy correctly ?
Thanks and regards,