[jBPM] - jBPM and caching
by Eivind Barstad Waaler
Eivind Barstad Waaler [http://community.jboss.org/people/eivindbw] created the discussion
"jBPM and caching"
To view the discussion, visit: http://community.jboss.org/message/550224#550224
--------------------------------------------------------------
Does anyone have any experience enabling Hibernate second-level caching with jBPM? Things like User, Deployment and more are practically never changed in our application, and could easily be cached to reduce the amount of database queries.
I can get it to work by writing my own custom criteria searches, adding setCacheable(true), but nothing else seems to have any effect. Re-implementing the whole API just to add that one line to all criterias does not seem like a good idea.
Does anyone have any hints or tips regarding this? Right now our application drowns in database requests with a few hundred active process-instances, and we need it to scale up to at least 10 000.
Documentation suggests that the Deployment objects are cached, but as far as I can tell that is not happening in our application.
We are using Spring to set up the SessionFactory. Could this be the problem?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550224#550224]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 4 months
[jBPM] - How to overwrite fork, join and decision?
by Max Bryan
Max Bryan [http://community.jboss.org/people/MBryan] created the discussion
"How to overwrite fork, join and decision?"
To view the discussion, visit: http://community.jboss.org/message/550212#550212
--------------------------------------------------------------
Hey Folks,
I'm working on a process with jPDL. The process definition seems right to me, but i nevertheless can't run the simulation.
Is the problem, that i haven't overwritten the forks, joins and decisions? I only know how to overwrite tasks and i think, this is the problem why i can't run this simulation.
Here is the code:
<process-definition name="newProcess">
<swimlane name="labor">
<assignment pooled-actors="labor1,labor2,labor3"/>
</swimlane>
<swimlane name="doktor">
<assignment pooled-actors="doktor1,doktor2,doktor3"/>
</swimlane>
<start-state name="start">
<transition to="anamnese" name="start"/>
</start-state>
<task-node name="anamnese">
<task name="anamnese" swimlane="doktor" />
<transition to="entscheidung" name="e1"/>
</task-node>
<decision name="entscheidung">
<transition to="fork1" name="to fork1"></transition>
</decision>
<fork name="fork1">
<transition to="join1" name="join1"></transition>
<transition to="blutprobe" name="blutprobe"></transition>
</fork>
<task-node name="blutprobe">
<task name="blutprobe" swimlane="labor"></task>
<transition to="join1" name="join1"></transition>
</task-node>
<join name="join1">
<transition to="entscheidung1" name="entscheidung1"></transition>
</join>
<decision name="entschdeidung1">
<transition to="end" name="zoeliakie"></transition>
</decision>
<end-state name="end" />
</process-definition>
<?xml version="1.0" encoding="UTF-8"?>
<experiment name='newProcess'
time-unit='second'
run-time='16000'
real-start-time='20.10.2009 08:00:00:000'
currency='€'
unutilized-time-cost-factor='0.0'>
<scenario name="status_quo" execute="false">
<distribution name="newProcess.start" sample-type="real" type="erlang" mean="95"></distribution>
<distribution name="newProcess.anamnese" sample-type="real" type="normal" mean="1800" standardDeviation="300"></distribution>
<distribution name="newProcess.blutprobe" sample-type="real" type="normal" mean="1800" standardDeviation="300"></distribution>
<sim-process path="/org/jbpm/sim/tutorial/business/newProcess/processdefinition.xml">
<process-overwrite start-distribution="newProcess.start"></process-overwrite>
<task-overwrite task-name="anamnese" time-distribution="newProcess.anamnese">
<transition name="e1" probability="95"></transition>
</task-overwrite>
<task-overwrite task-name="blutprobe" time-distribution="newProcess.blutprobe">
<transition name="e1" probability="95"></transition>
</task-overwrite>
</sim-process>
</scenario>
<scenario name="status_quo_normal_case" execute="true" base-scenario="status_quo">
<resource-pool name="labor" pool-size="1" costs-per-time-unit="0.023888889"/>
<resource-pool name="doktor" pool-size="1" costs-per-time-unit="0.043888889"/>
<output path='./sim_out/'></output>
</scenario>
</experiment>
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550212#550212]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 4 months
[jBPM] - Bug in JBPM 4: timers on transitions.
by Gert Leenders
Gert Leenders [http://community.jboss.org/people/glnds] created the discussion
"Bug in JBPM 4: timers on transitions."
To view the discussion, visit: http://community.jboss.org/message/550211#550211
--------------------------------------------------------------
Even in the last snapshot build jbpm-distro-4.4-20100618.012828-1 there still seems to be a bug when adding a timer to a transition:
*<state>*
* <transition to="Task x">*
* <timer duedate="3 seconds"/>*
* </transition>*
*</state>*
When defining this in jpdl you’ll always get the following error:
+Exception in thread "main" org.jbpm.api.JbpmException: timer has no signalName or eventName specified+
+ at org.jbpm.pvm.internal.job.TimerImpl.validate(TimerImpl.java:143)+
+ at org.jbpm.pvm.internal.jobexecutor.JobExecutorTimerSession.schedule(JobExecutorTimerSession.java:53)+
+ at org.jbpm.pvm.internal.job.TimerImpl.schedule(TimerImpl.java:70)+
This is because the variable ‘eventName’ of TimerImpl is never set (and there seems no possibility to do it due to the restrictions in jpdl and the jpldParser).
Maybe when parsing a timer on a transition a default event (timeout) could be specified?
Regards,
Gert
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550211#550211]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 4 months