As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<br> <userTask id="usertask1" name="All your base are belong to us"><br> <extensionElements><br> <activiti:taskListener event="create" class="org.activiti.engine.impl.bpmn.listener.ScriptTaskListener"><br> <activiti:field name="script"><br> <activiti:string><br> def bar = "BAR"; // local variable<br> foo = "FOO"; // pushes variable to execution context<br> bar // implicit return value<br> </activiti:string><br> </activiti:field><br> <activiti:field name="language" stringValue="groovy" /><br> <activiti:field name="resultVariable" stringValue="myVar" /><br> </activiti:taskListener><br> </extensionElements><br> </userTask><br> <br>
<br><br> <userTask id="firstTask" /><br> <sequenceFlow sourceRef="firstTask" targetRef="secondTask"><br> <extensionElements><br> <activiti:executionListener class="org.activiti.examples.bpmn.executionListener.ExampleExecutionListenerTwo" /><br> </extensionElements><br> </sequenceFlow><br> <br><br>
<br>Caused by: java.lang.ClassNotFoundException: org.activiti.examples.bpmn.executionlistener.ExampleExecutionListenerOne<br>
Note that Java classes present in the business archive will not be added to the classpath. All custom classes used in process definitions in the business archive (for example Java service tasks or event listener implementations) should be present on the activiti-engine's classpath in order to run the processes.