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
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 :
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
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 :
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
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
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
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 :