[jboss-user] [jBPM] - How to overwrite fork, join and decision?

Max Bryan do-not-reply at jboss.com
Tue Jun 29 10:30:48 EDT 2010


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100629/162c8a74/attachment.html 


More information about the jboss-user mailing list