deploying by program
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2011 10:18 AM
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.
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.
Labels:
- Labels:
-
Archive
nullpointer.png
61 KB
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2011 05:34 AM
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…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2011 04:51 AM
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…
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…
