ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » [solved]checkIn not working ?????

Post new topic  Reply to topic
 [solved]checkIn not working ????? « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Fri Apr 08, 2005 8:41 am    Post subject: [solved]checkIn not working ????? Reply with quote

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
View user's profile Send private message Send e-mail
Ratan
PostPosted: Fri Apr 08, 2005 3:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jmac
PostPosted: Fri Apr 08, 2005 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
elvis_gn
PostPosted: Fri Apr 08, 2005 9:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jmac
PostPosted: Sat Apr 09, 2005 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
elvis_gn
PostPosted: Sat Apr 09, 2005 5:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jmac
PostPosted: Sat Apr 09, 2005 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » [solved]checkIn not working ?????
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.