[jboss-user] [JBoss jBPM] - Re: reassign users to a task instance

2008-03-04 Thread luowp
taskInstance.setActorId(username,true) replace the swimlane. use: taskInstance.setActorID(username, false) should be fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134062#4134062 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&

[jboss-user] [JBoss jBPM] - Re: taskinstance setStart(new Date()) storing null in the da

2008-03-04 Thread luowp
How could you call setStart() method. I can only find start() or start(actorID) method in TaskInstance class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134060#4134060 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [JBoss jBPM] - Start task instance and un-start task instance

2008-03-04 Thread luowp
I want to set specified start time for a task instance. But it seems do not have the parameter to set time. And how to set task instance as not started. Because I need re-assign a task instance to another user. So need let that user to start the task instance again. Is that possible. Thanks!

[jboss-user] [JBoss jBPM] - Re: Hibernate Connection Lost

2006-10-30 Thread luowp
Sorry. I do not know c3p0. How to reconnect the connection by using jbpm API.?Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981767#3981767 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981767 ___

[jboss-user] [JBoss jBPM] - Re: problem closing services - Caused by: org.jbpm.persisten

2006-10-28 Thread luowp
I have the similar problems. When I deployed using jbpm starter kit. It works OK. But in Geronimo, the hibernate connection lost after several hours. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981537#3981537 Reply to the post : http://www.jboss.com/inde

[jboss-user] [JBoss jBPM] - Hibernate Connection Lost

2006-10-28 Thread luowp
I have a strange problem. I developed some web-services (AXIS-based). DB using mysql 5.0.26. In jbpm start kit, it works stable. The service works for more than 1 month never down. Then I deployed to Geronimo 1.1, after several hours (more than 8). The connection seems lost. The error messag

[jboss-user] [JBoss jBPM] - Is there any method to store information in process definiti

2006-10-25 Thread luowp
Hi All, I want to store some information related to a process definition. I know for each process instance there is a context object to store information. Is there any places to put definition level data? Thx! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=

[jboss-user] [JBoss jBPM] - Re: What will happen after cancel a task instance

2006-09-01 Thread luowp
I try that. If I just cancel the taskinstance, it will go to next node. So I ended the process instance at the same. But the end of process instance does not cancel all task instances. How could I cancel a taskinstance and stop a process? View the original post : http://www.jboss.com/index.ht

[jboss-user] [JBoss jBPM] - What will happen after cancel a task instance

2006-09-01 Thread luowp
Hi I just want to know what will happen after I call taskinstance.cancel. What the status of the process? Is the token stop here for ever or it goes to next node automatically? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968983#3968983 Reply to t

[jboss-user] [JBoss jBPM] - How to retrieve last taskinstance

2006-09-01 Thread luowp
Hi, I have a requirement to get the last taskinstance which trigger current one. Here I have taskinstance ID of current active one. What I am thinking is get all task instance for this process instance and find out the last end one. That looks not nice. Are there any good ideas for this? Thank

[jboss-user] [JBoss jBPM] - Re: How to retrive a task in startstate

2006-08-21 Thread luowp
I got that. def.getTaskMgmtDefinition().getStartTask() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966536#3966536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966536 ___

[jboss-user] [JBoss jBPM] - How to retrive a task in startstate

2006-08-21 Thread luowp
Hi, I have a requirement to get the pre-defined task in startstate. I can get the startstate by invoking processdifinition.getStartState. But how can I get the task defined in this StartState? Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3

[jboss-user] [JBoss jBPM] - Re: is that possible to create tasknodes in runtime?

2006-08-04 Thread luowp
Thanks. Subprocess is a good idea. I just not sure how to manage the subprocesses and main process. Is there any testcase in jbpm to show how sub-process works? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963268#3963268 Reply to the post : http://www.j

[jboss-user] [JBoss jBPM] - Re: is that possible to create tasknodes in runtime?

2006-08-04 Thread luowp
This is the difficulties I met. 1. I need all task Bs can start simultaneously; 2. After one B finish, a C should start. 3. All (B+C)s should be joined together for next step. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963245#3963245 Reply to the post :

[jboss-user] [JBoss jBPM] - is that possible to create tasknodes in runtime?

2006-08-04 Thread luowp
The process will be determined in runtime. For example, I have a node A, node B, and Node C. When finishing A, I will know how many B need to create. And for each B, it needs a C follow it. Is there another way to implement that? I checked workflow patterns. The MIs are working for the situa

[jboss-user] [JBoss jBPM] - about process define

2006-08-04 Thread luowp
I have a scenario. The first task is create a schedule. From this schedule, it will create a bunch of same type of tasks. The number of task will be decided in runtime. For each of this task, it has a review task follow it. Is that means I need dynamically create task nodes in runtime? But how t

[jboss-user] [JBoss jBPM] - could somebody paste a script example for fork

2006-07-31 Thread luowp
I just want to add a piece of script to customerize my fork. It need get value from a process varible a. If a==true, the fork goes to three transitions, otherwise, just goes to two transitions. I am trying to using expression in transition. a it throws exceptions. Has anybody a small p

[jboss-user] [JBoss jBPM] - Re: Where can I find process examples

2006-07-31 Thread luowp
Thx! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961997#3961997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961997 ___ jboss-user mailing list jboss-user@lists.jboss.org

[jboss-user] [JBoss jBPM] - Re: How to dynamically create fork's transitions

2006-07-31 Thread luowp
Thanks for the replies. I am a new guy in jbpm. Questions based on the solutions: 1. how to add a action handler for a fork. Is that using ? 2. how to disable one of the transition in this handler? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961915#396

[jboss-user] [JBoss jBPM] - Write my fork

2006-07-31 Thread luowp
Hi All, I am trying to write my fork. I created a class called MyFork with almost same code as Fork.java and do some customerlize in execute method. The question is how to let the processdefinition assoicate with MyFork? I tried to change to , it throw out exceptions. Thanks very much for he

[jboss-user] [JBoss jBPM] - How to dynamically create fork's transitions

2006-07-31 Thread luowp
HI all, I have a requirement to use fork. In one situation, I need have three tasks follow, but in another situation, it just have two tasks. How to do that? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961855#3961855 Reply to the post : http://w

[jboss-user] [JBoss jBPM] - How to stop a token to propagate

2006-07-28 Thread luowp
I have a process which has a fork. This fork has three way. I just want to stop one of them. So I add an action handler in one of nodes and get context data and then using this context data to decide whether or not stop this path. I use token.end() trying to stop one path but it fails. Could any

[jboss-user] [JBoss jBPM] - Where can I find process examples

2006-07-28 Thread luowp
I just started to use jBPM. I am wondering where can I find some examples of process definition. Thx! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961633#3961633 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961633