AnsweredAssumed Answered

Problem with escape characters using 'generate a unit test'

Question asked by rittmann on Jul 18, 2013
Latest reply on Jul 19, 2013 by rittmann
Greetings. I have recently begun to dig into Activiti, and so this is my first post in these forums.

While trying the designer - Eclipse Kepler (JEE Edition), designer plugin 5.12 -, I generated a couple of simple diagrams. When I used the Activiti command to generate a unit test, the resulting Java code creates

private String filename = "route"

The problem is that the generated route is taken directly as a windows route, and in Java that causes escape character problems:

private String filename = "D:\activitiDesignerWS\Activiti learning\src\main\resources\diagrams\SimpleProcess.bpmn";

I fix it manually by doubling the slashes:

private String filename = "D:\\activitiDesignerWS\\Activiti learning\\src\\main\\resources\\diagrams\\SimpleProcess.bpmn";

But I'd like to know if there's a way to prevent this behavior, since if we adopt Activiti in my company, our analysts using the designer will probably have not the technical background to perform this kind of operation. Should I install the plugin in an earlier version of Eclipse?