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 » Build time question

Post new topic  Reply to topic
 Build time question « View previous topic :: View next topic » 
Author Message
ucbus1
PostPosted: Thu Oct 03, 2002 9:08 am    Post subject: Build time question Reply with quote

Knight

Joined: 30 Jan 2002
Posts: 560

I have a question on how to code transition condition.
I have two activies A and B. I have to code a transition condition to check a string so that A or B will be executed.
I want "B" to be executed if the string is not "" and does not contain either "123" or "456". Can somebody tell me how can I code this transition condition?
Does bulid time supports "contains" so that I can code some thing like
execute activity B if

string<>"" AND
String NOT CONTAINS(123,456).

Please let me know how this condition can be coded?


Thanks
Back to top
View user's profile Send private message Send e-mail
amittalekar
PostPosted: Thu Oct 03, 2002 9:44 am    Post subject: Reply with quote

Disciple

Joined: 03 Apr 2002
Posts: 166
Location: VA, USA

with the string, in the buildtime transition condition, u can do
UpperCase, LowerCase, SubString & compare Value. In your case you can add an addition flag in the o/p container and put this in the transition state and set the value if your criteria matches.
Back to top
View user's profile Send private message Yahoo Messenger
ucbus1
PostPosted: Thu Oct 03, 2002 10:02 am    Post subject: Reply with quote

Knight

Joined: 30 Jan 2002
Posts: 560

If i undersatnd correctly, you want me to add a flag in addition to the one I have now and in the program which is populating the output container , populate the newly added flag based on the conditions I have mentioned and check it in the transition code right?
Unfortunately, I can not modify the program upstream to modify the output container. Is there no other way?

Can I do this? execute a script and check the output of the script is true or false?
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Thu Oct 03, 2002 11:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

It is not clear to me what the contents of the member you want to test might be.

Assuming that a member called testMe could have as its value any of the following:
1. zero length string
2. any other string

you can simply code:
testMe = "" OR ( testMe <> "123" AND testMe <> "456")

If on the other hand you mean that if testMe contains anywhere inside the string the consecutive characters 123 or 456 then I think you have a problem that can only be solved as amittlekar proposes
_________________
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
amittalekar
PostPosted: Thu Oct 03, 2002 11:29 am    Post subject: Reply with quote

Disciple

Joined: 03 Apr 2002
Posts: 166
Location: VA, USA

IF u are already using the flag and that flag (string) value is not forwarded to next activity, then instead of putting string value u can directory store the "Yes" or "No" after evaluating string value.
Constraint here being no change in the o/p container.
Back to top
View user's profile Send private message Yahoo 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 » Build time question
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.