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 » Block Exit Condition

Post new topic  Reply to topic
 Block Exit Condition « View previous topic :: View next topic » 
Author Message
pingwf
PostPosted: Thu May 12, 2005 11:48 am    Post subject: Block Exit Condition Reply with quote

Novice

Joined: 09 Dec 2002
Posts: 23

What is syntax to refer activity name in bloc exit condition.

For example:
I have a block : BLOCK1
in this block I have an activity : ACTIVITY1

Now I want to set exit condition of BLOCK1 like:
_State("ACTIVITY1") = _Skipped

But this does not work... I get error message

FMC22551E BLOCK1: Activity1 not found

It looks like I am not using correct syntax to refer the activity inside the block. What's the correct syntax?

Thanks in advance..
_________________
IBM Certified Solutions Expert - MQSeries Workflow
Back to top
View user's profile Send private message MSN Messenger
Ratan
PostPosted: Thu May 12, 2005 12:21 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

I think it is <BlockName>.<ActivityName>
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
pingwf
PostPosted: Thu May 12, 2005 12:47 pm    Post subject: Reply with quote

Novice

Joined: 09 Dec 2002
Posts: 23

I tried that:

_State("BlockName.ActivityName") = _Skipped

It did not work...

Thanks!
_________________
IBM Certified Solutions Expert - MQSeries Workflow
Back to top
View user's profile Send private message MSN Messenger
kotha
PostPosted: Thu May 12, 2005 12:58 pm    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

I tried your scenario, i didnt get the error you mentioned but it is exiting any way(I mean, even Acitivy not skipped!!!). I also tried using the data loop connector.

I found the following info in Buildtime document.

Function for use in transition conditions: _State If you use _State( ), this accesses the actual execution state of the current activity in the process. If you use _State (Program1),this accesses the execution state of the activity called Program1.
Note that you can only refer to an activity that precedes the current activity, according to the defined control path.

Note: To determine the flow between activities in a process, you use control connectors. The connection from an activity to subsequent activities is called control path.

better luck.
Back to top
View user's profile Send private message
pingwf
PostPosted: Fri May 13, 2005 11:19 am    Post subject: Reply with quote

Novice

Joined: 09 Dec 2002
Posts: 23

I got reply from IBM WebSphere MQ Workflow forum:

Quote:
_State() can only be used in TRANSITION conditions.



http://www-128.ibm.com/developerworks/forums/dw_expandTree.jsp?thread=81218&forum=282&cat=9&message=13717319#13717319
_________________
IBM Certified Solutions Expert - MQSeries Workflow
Back to top
View user's profile Send private message MSN Messenger
jmac
PostPosted: Fri May 13, 2005 3:05 pm    Post subject: Reply with quote

Jedi Knight

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

I thought that was the case, I have it in my notes that _State is only for Transition, but could not find it cited anywhere in any IBM document. Then I ran a test by using it in BuildTime and it didn't give me a syntax error so I thought I was wrong about it.

I have updated my notes to note that they are in fact correct
_________________
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 » Block Exit Condition
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.