JBoss Community

How to overwrite fork, join and decision?

created by Max Bryan in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community