AnsweredAssumed Answered

Async Java Task

Question asked by geroswen on Oct 24, 2015
Latest reply on Oct 26, 2015 by vasile.dirla
Hello, I'm trying to run Async Java Task in Activiti explorer, but it doesnt seem to work.

Final java task will be used to run Oracle stored procedure, which will run somewhere about 60 minutes and there will be couple of similiar procedures running in paralel. But for now lets make it simple:

Java task looks like this:

package org.activiti.scripts;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class JavaTask implements JavaDelegate {
     public void execute(DelegateExecution execution) throws Exception {
        System.out.println("Java task started");

These are my engine properties:

# engine properties

It works perfectly when im trying to run this task with parameter activiti:async="false". However it doesnt work at all when I change it to activiti:async="true".

Can you tell me what else do I need to do please? Thank you!