cancel
Showing results for 
Search instead for 
Did you mean: 

deploying by program

arno1
Champ in-the-making
Champ in-the-making
Hello,

Currently I'm trying to deploy a very simple process diagram (which was modeled with the Eclipse plugin) to the Activiti Engine.
I want to do this by code, like it is described in the user guide.
When I start the program it throws a NullPointerException at the line where the deployment should happen.
All the files exist and the class is also instanciated (I wrote a simple own class by implementing the interface "RepositoryService" which looks to be obviously necessary to be implemented through a own class.)

I added a screenshot of the code snippet and hope that someone can help me.
And yes, I'm a Activiti beginner.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Can you clarify why exactly you are implementing the RepositoryService yourself? Does the implementation actually return something when calling createDeployment? If not, NPE makes total sense…

arno1
Champ in-the-making
Champ in-the-making
Okay, okay.
But how can I deploy by program?
I have set up my engine by running "ant demo.start", I have created my bpmn20.xml file by making it with the designer plugin of eclipse.
The only thing I want to do is to deploy this file/diagram to the already running engine (written above).
I have no idea how to do this. Unfortunately this isn't described very simple/well in the online documentation.
So, I have this problem and do not know how to solve it…