cancel
Showing results for 
Search instead for 
Did you mean: 

Custom UserTaskXMLConverter

mleonrivas
Champ in-the-making
Champ in-the-making
Hi everyone,
I need to extend the class UserTaskXMLConverter and I want to know if there is a way to override this converter by configuration (in the applicationContext.xml or similar), just like with custom parse handlers.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
You can use a java-class, which you add to the spring-context (for example) and make spring call some kind of init-method. The init-method should call the static addConverter(…) method on org.activiti.bpmn.converter.BpmnXMLConverter, which can override the current converter for UserTaskXMLConverter.getXMLType().

This way, when your app is loaded and spring-context ready, the converter will be rigged with the custom converter.

mleonrivas
Champ in-the-making
Champ in-the-making
Thank you so much Smiley Happy