cancel
Showing results for 
Search instead for 
Did you mean: 

Async Java Task

geroswen
Champ in-the-making
Champ in-the-making
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
engine.schema.update=true
engine.activate.jobexecutor=true
engine.asyncexecutor.enabled=true
engine.asyncexecutor.activate=true
engine.history.level=full

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!
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
Hi,
Please write a unit test to show the issue, and provide it here as a zip. (before uploading the zip file just rename it to txt, because zip files are not allowed to be uploaded)
Then we'll have all we need in order to investigate and see what's happening.