-
1. Re: Extending jBPM 4 history service
jbarrez Apr 8, 2009 5:59 AM (in response to mpradny)It's certainly possible. I don't know for jBPM 4 (yet), but for jBPM Bernd Ruëcker has written a good articale about it: http://www.bpm-guide.de/2008/12/06/easily-generate-bam-events-wih-jbpm/
Perhaps you can use the ideas in the article for your problem. -
2. Re: Extending jBPM 4 history service
mpradny Apr 8, 2009 6:52 AM (in response to mpradny)Thank you, if I have seen this before I could save some brain power. At least I came to similar conclusion :).
Does anyone know how to this could be done in jBPM 4 configuration? Since I'm starting new project and it probably will not be done by summer, when jBPM4 should be final, I wanted to use it.
If not, I will stick to jBPM3 for now.
Martin -
3. Re: Extending jBPM 4 history service
alkero Nov 30, 2009 9:59 AM (in response to mpradny)Hello Martin,
What was the results of your investigation about extending the history service ?
Regards,
David -
4. Re: Extending jBPM 4 history service
mpradny Dec 1, 2009 6:01 AM (in response to mpradny)Hello,
I just created small demo that did work. I needed some other features that were not part of jBPM 4.0, but are in version 4.2, so I plan to get back to it and get some stable solution now.
Martin -
5. Re: Extending jBPM 4 history service
h4rlock Aug 23, 2010 5:09 AM (in response to mpradny)Hi Martin,
how did you extend the jbpm4 history service?
I will be very thankful to you if you can help me, since I have a similar issue to resolve..
Marco
-
6. Re: Extending jBPM 4 history service
h4rlock Aug 23, 2010 7:03 AM (in response to h4rlock)Ok, now I am able to extend the HistorySession and I can intercept ProcessInstanceCreate (or whatever..).
Does anyone knows how can I access to the object tied to the event in the HistorySession?
i.e. Here I would like to log the process instance id...
public class TestHistSession implements HistorySession { public void process(final HistoryEvent historyEvent) { if (historyEvent instanceof ProcessInstanceCreate) { final ProcessInstanceCreate p = (ProcessInstanceCreate) historyEvent; // TODO what can I do here??? } } }
thank you
Marco
-
7. Re: Extending jBPM 4 history service
h4rlock Aug 30, 2010 3:15 AM (in response to h4rlock)resolved in 4.4 which has getters in HistoryEvent implementations...