[jboss-user] [JBoss jBPM] - Re: Timer not firing - why ???

2008-02-12 Thread ArnoldH
I have the same problem, and I use junit for testing. and I use : final int SECONDS_TO_WAIT = 3; //30 seconds try { Thread.sleep(SECONDS_TO_WAIT); } catch (InterruptedException e) { e.printStackTrace(); } to simulate the waiting

[jboss-user] [JBoss jBPM] - Re: how to tell jbpm to do something when process instance i

2008-02-12 Thread ArnoldH
if I can put one action in the event elements in the process definetion, it will work, but it seems the process-canceled event is not supported, right? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128973#4128973 Reply to the post :

[jboss-user] [JBoss jBPM] - how to tell jbpm to do something when process instance is be

2008-02-11 Thread ArnoldH
Hi, everyone. the scenario is like this: I have a process definetion, and when the process instances is being cancelled, I want jbpm to execute some code (perhaps in Action or something like that). but I just don't know what to do. can anybody help me out? Thanks a lot! View the

[jboss-user] [JBoss jBPM] - How to remove a task instance?

2008-02-03 Thread ArnoldH
This question may be asked before, but I just cann't find the threads. I want to add and remove task instances dynamically in my code, and just can not find the proper methods. so can anyone please tell me a way? thanks a lot! View the original post :

[jboss-user] [JBoss jBPM] - Re: How to remove a task instance?

2008-02-03 Thread ArnoldH
I have just read the source code of TaskInstance.java, it seems the method markAsCancelled() will work, but unfortunately it is privte. and then I found the code below should work: taskInstance.setSignalling(false); taskInstance.cancel(); as the isSignalling instance varialble is set to

[jboss-user] [JBoss jBPM] - How to define a task that can auto complete when the actorId

2008-02-02 Thread ArnoldH
Hi, every one. I have a process definetion like this: Task1 - Task2 - Task3 - - Task10 - Task11 - END I want all the tasks can automatically complete when the token points to one of the task and the actorId of the task instance is null or . It seems that Decision nodes can help, but it

[jboss-user] [JBoss jBPM] - is it possible to force the token jump from one node to anot

2008-01-31 Thread ArnoldH
Hi, everyone! I am just wondering if it is possible to force a process instance to change its current node. for example, there is a process definition as: Task1 - Task2 - Task3 - - Task10 - Task11 - END and when a process instance is created and the root token points to Task3, but one

[jboss-user] [JBoss jBPM] - Re: is it possible to force the token jump from one node to

2008-01-31 Thread ArnoldH
Thank you, jpechane! just replied so quickly. I have tried that, and found that it really points to the node I wanted! and now the things left seem to be like reinitialize the tasks for the users and so on. thanks again! View the original post :