I’m trying to create a delegateExpression on a service task programatically with the flowable-bpmn-converter, to make the following output
flowable:delegateExpression="${javaDelegate}"
I’m trying to programatically create the following:
<serviceTask id="someId" name="Call Java Delegate">
I’ve tried something like this (along with a few variations
List<ExtensionAttribute> extensionAttributes = new ArrayList<ExtensionAttribute>();
ExtensionAttribute extensionAttribute = new ExtensionAttribute();
extensionAttribute.setNamespacePrefix("xmlns");
extensionAttribute.setNamespace("flowable");
extensionAttribute.setName("delegateExpression");
extensionAttribute.setValue("${javaDelegate}");
extensionAttributes.add(extensionAttribute);
serviceTask.getAttributes().put("customAttribute", extensionAttributes);
I’m using the Flowable BPMN converter and creating the XML https://github.com/flowable/flowable-engine/tree/master/modules/flowable-bpmn-converter