BPMS SPI Monitoring - IProcessExecutionMonitor [message #1139059] |
Tue, 15 October 2013 10:05  |
Eclipse User |
|
|
|
Hello,
Thanks a lot for the wiki page update and explanation on the use of IWorklistMonitor [1]. I used it and it worked pretty fine.
Now, I am trying to use the IProcessExecutionMonitor in the similar way. I created my own class called ProcessMonitoringProbe and want to give custom push notifications when the process complete and starts
While trying to add my fully qualified implementation class name to org.eclipse.stardust.engine.core.spi.monitoring.IProcessExecutionMonitor in the META-INF/services folder of carnot-engine.jar, I found some other class name already present there i.e. org.eclipse.stardust.engine.core.monitoring.DefaultProcessExecutionMonitor
I removed this class name and added the class file I created and my code was giving the push notifications when the process started to run and when it got completed.
But, I am not sure how to give both the file names together ?
org.eclipse.stardust.engine.core.monitoring.DefaultProcessExecutionMonitor and org.eclipse.stardust.example.IProcessExecutionMonitor
This is because, I am not sure what the DefaultProcessExecutionMonitor class is doing and thus do not want to remove it.
The same with the *.IActivityInstanceMonitor file in the META-INF/services folder.
Please do guide me how to make use of my custom class along with the default class present in the *.IProcessExecutionMonitor file.
Thanks!
Kunal
[1] http://wiki.eclipse.org/Stardust/Knowledge_Base/Java_API/IWorklistMonitor_Example
[Updated on: Fri, 18 October 2013 10:06] by Moderator
|
|
|
|
|
|
Re: BPMS Push Monitoring - IProcessExecutionMonitor [message #1140793 is a reply to message #1140683] |
Wed, 16 October 2013 12:10  |
Eclipse User |
|
|
|
Hi Jan,
Thanks a lot for your quick response
I tried using the step 1 - No Outcome (I hope I didn't do it wrong!)
I tried Step 2 and got the results as expected
Thus, its preferably easier for Stardust to read from the jar file as described in step 2 and I totally agree its more cleaner and reusable to write the code in that format.
Thanks again!
Kunal
Jan Hendrik Scheufen wrote on Wed, 16 October 2013 10:32Hi,
I think you have two location options for storing your own services file
- Inside the web project
As you noted correctly there are already two folders in the web project called META-INF. The content of both gets merged when the project is deployed, so it does not matter which one you use. I'd recommend to use the location WebContent/META-INF/services/, because it's more of a standard location where others would expect to find such files.
- In a custom JAR project
If you want to go one step further, you can also create your own JAR project (in Eclipse: File > New > Other > JEE > Utility Project) and include it into the web project for deployment: Right-click on the web project > Properties > Deployment Assembly > Add > Project.
In your utility project you can then create the required folders and files underneath the src/ folder.
We typically recommend this approach, because it makes life easier in the long run to keep custom code and files outside of the web project. For example, you can upgrade or just throw away and recreate the web project without losing any of your custom files.
Let me know if you have any further questions. Disclaimer: I've not tried the above setup myself, yet, but according to the specification this SHOULD work. 
|
|
|
Powered by
FUDForum. Page generated in 0.04439 seconds