hi all ;

i am newbi at jbpm and try to develop a workflow (using timeout)

i am using ;
JBPM 3.2.2
JSF 1.1
TOMCAT 5.5



  | <?xml version="1.0"?>                                                       
                                                
  | <process-definition name="onlineRuhsat"                                     
                                        
  |                     xmlns="urn:jbpm.org:jpdl-3.2">                          
                                        
  |    <swimlane name="mukellef" >                                              
                                        
  |             <assignment actor-id="user"  ></assignment>                     
                                        
  |     </swimlane>                                                             
                                        
  |    <swimlane name="ikr_personel" >                                          
                                        
  |             <assignment actor-id="personel"  ></assignment>                 
                                        
  |     </swimlane>                                                             
                                        
  |                                                                             
                
  |   <start-state name="Start basvuru">                                        
                                        
  |     <task swimlane="mukellef"  name="start"/>                               
                                
  |             <transition to="Get Doc"></transition>                          
                        
  |             <event type="after-signal">                                     
                                        
  |                     <action 
class="com.sampas.akos.workFlow.tools.MailActionHandler" name="Mail 
Sender"></action>   
  |             </event>                                                        
                                        
  |   </start-state>                                                            
                                        
  |   <task-node name="Get Doc" >                                               
                                
  |          <task swimlane="ikr_personel" ></task>                             
                                
  |          <timer duedate="5 business seconds" name="test-timer" 
transition="to Clear Task" >
  |                     <action 
class="com.sampas.akos.workFlow.tools.RemindActor" 
name="test-timer-act"></action>
  |             </timer>
  |             <transition to="Ok"></transition>                               
                                        
  |          <transition to="Clear Task" name="to Clear Task"></transition>     
                                                
  |             <event type="after-signal">                                     
                                        
  |                     <action 
class="com.sampas.akos.workFlow.tools.MailActionHandler" name="Mail 
Sender"></action>   
  |             </event>                                                        
                                        
  |   </task-node>                                                              
                                        
  |   <task-node name="Ok">                                                     
                                
  |     <task swimlane="user" >                                                 
                                
  |             </task>                                                         
                                        
  |                 <transition to="END" name="end"></transition>               
                                
  |             <event type="after-signal">                                     
                                        
  |                     <action 
class="com.sampas.akos.workFlow.tools.MailActionHandler" name="Mail 
Sender"></action>   
  |             </event>                                                        
                                        
  |   </task-node>                                                              
                                        
  | 
  |   <node name="Clear Task">                                                  
                                
  |     <transition to="END"></transition>                                      
                                
  |     </node>                                                                 
                                        
  |   <end-state name="END" />                                                  
                                        
  | </process-definition>                                                       
                                  


my   jbpm.cfg.xml is 

  | <jbpm-configuration>
  |     <jbpm-context>
  |             <service name="persistence"
  |                     
factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
  |             <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
  |             <service name="scheduler"
  |                     
factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
  |     </jbpm-context>
  |     <string name="resource.hibernate.cfg.xml"
  |             value="com/sampas/akos/hibernate.cfg.xml" />
  |     <string name="resource.business.calendar"
  |             value="org/jbpm/calendar/jbpm.business.calendar.properties" />
  |     <string name="resource.default.modules"
  |             value="org/jbpm/graph/def/jbpm.default.modules.properties" />
  |     <string name="resource.converter"
  |             value="org/jbpm/db/hibernate/jbpm.converter.properties" />
  |     <string name="resource.action.types"
  |             value="org/jbpm/graph/action/action.types.xml" />
  |     <string name="resource.node.types"
  |             value="org/jbpm/graph/node/node.types.xml" />
  |     <string name="resource.parsers"
  |             value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
  |     <string name="resource.varmapping"
  |             value="org/jbpm/context/exe/jbpm.varmapping.xml" />
  |     <string name="resource.mail.templates"
  |             value="jbpm.mail.templates.xml" />
  |     <string name="resource.jbpm.cfg.xml"
  |             value="com/sampas/akos/jbpm.cfg.xml" />
  |     <string name="resource.business.calendar"
  |             value="org/jbpm/calendar/jbpm.business.calendar.properties" />
  |     <string name="resource.default.modules"
  |             value="org/jbpm/graph/def/jbpm.default.modules.properties" />
  |     <string name="resource.converter"
  |             value="org/jbpm/db/hibernate/jbpm.converter.properties" />
  |     <string name="resource.action.types"
  |             value="org/jbpm/graph/action/action.types.xml" />
  |     <string name="resource.node.types"
  |             value="org/jbpm/graph/node/node.types.xml" />
  |     <string name="resource.varmapping"
  |             value="org/jbpm/context/exe/jbpm.varmapping.xml" />
  | </jbpm-configuration>
  | 

and when i run  test-timer action didnt call but  MailActionHandler called 
i found a solution at 3.1 there i can use
 
  | SchedulerThread th = new SchedulerThread();
  |             th.start();
  | 
but i cant use SchedulerThread at 3.2.2

how can i use timeout in my workflow , can you advice to me 
thanks for your help ...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100307#4100307

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100307
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to