cancel
Showing results for 
Search instead for 
Did you mean: 

Async behavior in custom JavaDelegate class?

blezek
Champ on-the-rise
Champ on-the-rise
We have a number of custom tasks in our workflows that implement JavaDelegate, each have corresponding custem Designer tasks created via a Designer plugin.  Is there some way we can mark these as asynchronous to use continuations?  While we can do this using a Service Task without problem, we have developed custom Designer tasks to ease workflow editing (no need to remember class names, and variables are easier to enter) and I couldn't find a documented way of doing this.

I'm happy with a Designer or Java solution.

Thanks,
-dan
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Marking an activity async is done in the BPMNParse, executed for taks, service-tasks, script-task, …


activity.setAsync(isAsync(serviceTaskElement));

protected boolean isAsync(Element element) {
    return "true".equals(element.attributeNS(BpmnParser.ACTIVITI_BPMN_EXTENSIONS_NS, "async"));
}

How do your custom Designer tasks end up in the XML?