cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Designer - Not generating xml file?

mxc4
Champ in-the-making
Champ in-the-making
Hi all,

I am trying to use the Activiti designer but seem to face some basic challenges. If I create a basic diagramme, using the new menu item, save it, generate a unit test case and then compile, the build claims it is successful, yet not test are run and the code in the eclipse IDE continues to show missing dependencies. The output of the build says

"There are no tests to run"

The code for the generated test class refers to a "process1.bpmn20.xml" file which is not generated at any point during the build process from the diagramme created..

What am I missing? It seem that there must be some basic steps I am leaving out but the documentation largely silent on this issue which means I am just being stupid Smiley Sad
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Does your eclipse have the m2eclipse plugin? Otherwise, do a mvn "eclipse:eclipse" on the project in command line and refresh…

tiesebarrell
Champ in-the-making
Champ in-the-making
This actually sounds like a bug. We don't generate those files anymore since we switched to a single .bpmn file. Maybe the generation of the unit test hasn't been adjusted to reflect that change - we should fix that. Please file a Jira issue so we can look into it.

tiesebarrell
Champ in-the-making
Champ in-the-making
Let me take that back. We generate a correct unit test for the .bpmn file, so there's no problem there. Try Frederik's suggestion too - you need to make sure the dependencies are on the classpath using maven.

mxc4
Champ in-the-making
Champ in-the-making
Hi all,

Thanks for the suggestions. I got it working by generating the maven project on the cli and then adding what I needed. Not sure what I did wrong before. I am more of a NetBeans and cli user so could just be I don't know the Eclipse IDE.

I also worked out the bpmn diagramme file combines the process definition and the visual representation. It was confusing to see the generated unit test referring to a xml with the bpmn20.xml extension as if the file should exists all on it own; but I see that this a name passed to the RepositoryService which also takes a reference to the bpmn file. I assume the RepositoryService generates this file from the bpmn diagram file.

The tests are running now - on to my next challenge which I am going to post about next Smiley Happy