Author |
Message
|
elvis_gn |
Posted: Fri Apr 08, 2005 8:41 am Post subject: [solved]checkIn not working ????? |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi,
i have a process template with only one user "A"......after the user i have given a sink. I gave the exit condition as _RC = 1.
The problem is that when i do a checkIn(outputContainer, 1) sometimes the workItem is passing off to the sink and in other cases it is staying in the activity.....
I tried removing the sink and the exit condition and it seems to be working...
I wanted to know whether the sink and this exit condition are causing this error and whether this error has been by anyone ???? |
|
Back to top |
|
 |
Ratan |
Posted: Fri Apr 08, 2005 3:36 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
sink node should have nothing to do with the behavior you are seeing. I would concentrate on the return code that I am setting. _________________ -Ratan |
|
Back to top |
|
 |
jmac |
Posted: Fri Apr 08, 2005 3:40 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
It is very difficult to help you when your terminology is so bad.
How does a Process Template have only one User? Do you mean it has only one Activity?
As Ratan said, the Sink can have absolutely nothing to do with this issue. If the process consists of a single activity, I would say if the Exit condition is met, the instance would be finished, otherwise the Activity would be in a ready state. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Apr 08, 2005 9:07 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I see my mistake sorry.
I have a process template. the template has only one activity.The user for this activity is "A". After this activity i have a sink.
The exit condition in my activity is _RC = 1.
The checkIn during the java application has a default of 1 as the return code.....this would mean that the exit should be successful every time.
I put a print statement of the exit condition before the checkIn and it is returning _RC = 1.
I cant understand why the checkIn is successful in some cases.It should either fail always or always be a success.
I tried doing a processInstance terminate and this is NOT working too.
Shouldn't this mean that the problem is in the FDL or the workflow itself, and not the code ??? |
|
Back to top |
|
 |
jmac |
Posted: Sat Apr 09, 2005 5:37 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
If it works some times and not others, my bet is your code is the problem. MQWF is a mature product and in a simple scenario such as you describe I seriously doubt there would be a bug. I am assuming here that you are ensuring that your model imports correctly. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
elvis_gn |
Posted: Sat Apr 09, 2005 5:59 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I have managed to fix the problem by removing the exit condition from the activity.
I know this is not the identification of the problem in the first place, but this seems to be working in all cases now....
How do I mark this topic as solved ??? or could u do for me jmac.Thx. |
|
Back to top |
|
 |
jmac |
Posted: Sat Apr 09, 2005 6:43 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
elvis_gn wrote: |
How do I mark this topic as solved ??? |
If you look at your initial post you will see a button on the right that says edit. Push this button, then you can edit the topic to add [SOLVED]. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|