[jBPM Users] - JBPM 4.0 HistoryEvent, HistorySession
by tcr
Hi,
we need to send emails and log information upon certain events (e.g a reassignment or change of priority).
All this is available as history events, so we thought implementing a custom history session and add this to the jbpm-config. As it turns out the history events do not expose their information (e.g. the execution they were fired from).
Is there a way to get the execution from a history event in a custom event session? Would it be possible to add a method getExecution into HistoryEvent in the next release, or did I miss something?
example:
| package com.test;
|
| import org.jbpm.pvm.internal.history.HistoryEvent;
| import org.jbpm.pvm.internal.history.HistorySession;
| import org.jbpm.pvm.internal.history.events.TaskAssign;
|
| public class NotificationListener implements HistorySession {
| public void process(HistoryEvent historyEvent) {
|
| if (historyEvent instanceof TaskAssign) {
| //User Assigned!
| TaskAssign taskAssign = (TaskAssign) historyEvent;
|
| //Nothing to get from taskAssign
| //Nothing visible from this package
| }
| }
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256069#4256069
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256069
16 years, 6 months
[jBPM Users] - Installing jBpm to GateIn
by jpeltoah
I tried to install jBpm-4.1 to the new GateIn portal (JBoss and exo portals put together) and I run into some problems.
First I installed GateIn 3.0.0-Beta01 and verified that portal was working.
Next i tried to install jBpm to GateIn with the ant script in jbpm's install folder, using the default hsql database. Jbpm console started to work and the jbpm was looking good, but the portal wasn't working anymore. Restarting the server didn't fix the problem.
On the second attempt i switched to use mysql db, using the ant targets I initialized the schema and filled it with demo data. Also I changed the properties in mysql data properties to match. This time portal wasn't working(no change there), but neither was jbpm console, the log showed that jbpm was unable to make connection to database.
There were some properties in build.xml which I had to change to make the build work, namely jboss.home and jboss.version, there could be something else that should be changed to make the build work.
Has anyone else tried to install jbpm to gatein?
BR,
Jukka
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255903#4255903
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255903
16 years, 6 months