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]Block exit condition

Post new topic  Reply to topic
 [SOLVED]Block exit condition « View previous topic :: View next topic » 
Author Message
CHF
PostPosted: Fri Dec 10, 2004 12:17 pm    Post subject: [SOLVED]Block exit condition Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

I have a block which has 3 activities A, B, and C.
I have the block exit condition like FIELD1="YES".

1) Is it possible to have the block exit condition something like (FIELD1="YES") OR (State of activity B is Force finished) ?

What I am trying to achieve here is that, if the avtivity B is force finished, I want to exit the block regardless of value of FIELD1.

Thanks in Advance.
_________________
CHF


Last edited by CHF on Tue Dec 14, 2004 12:35 pm; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
vennela
PostPosted: Fri Dec 10, 2004 12:27 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

You should test it and see if it works or not. If it does not then come back to us.
At a first glance I think it might work.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CHF
PostPosted: Fri Dec 10, 2004 12:43 pm    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

I tried to test it already, but I am unable to specify the block exit condition something like I mentioned above.
Quote:
(FIELD1="YES") OR (State of activity B is Force finished)


I know I can use the following syntax _State() = _Finished , to specify an exit condition for an activity. I do not know how to specify exit condition something like _State(of previous activity / an activity in the block) = _Finished. Can you please give me the syntax?

Thanks
_________________
CHF
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jmac
PostPosted: Fri Dec 10, 2004 1:49 pm    Post subject: Reply with quote

Jedi Knight

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

CHF:

Not sure if you can do this or not...

But I would try to use the fully qualified name of the activity in your state function.
_________________
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
CHF
PostPosted: Tue Dec 14, 2004 11:16 am    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

Fully qualified name is not working. If I give fully qualified name, its complaining about not finding that activity.

Well, I thought about a way around solution for what I needed and its working fine. Used a NOOP in the block.

John:
I got a silly doubt. In Holosofx, If I want to use a Block, which export type should I use Block or Activity?

Thanks
_________________
CHF


Last edited by CHF on Tue Dec 14, 2004 11:22 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jmac
PostPosted: Tue Dec 14, 2004 11:21 am    Post subject: Reply with quote

Jedi Knight

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

CHF wrote:
Well, I thought about a way around solution for what I needed and its working fine. Used a NOOP in the block.


Let me see if I understand.... you have added a noop activity that sets a member ActivityForceFinished = "true" then you are testing this in your block exit condition?

Thanks
_________________
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
CHF
PostPosted: Tue Dec 14, 2004 11:44 am    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

John:

I should have explained it in detail in my previous post.

This is my requirement:
Lets say I have 10 activities in a Block. The Block should exit if FLAG1="Yes' or if any of the activities is force finished in that Block.

Solution:
I have added a NOOP as the last activity within that Block. I added control connecters from all of the 10 activities to this NOOP activity, with the Transition Condition _State()=_ForceFinished. Technically if any of the activities are force finished this NOOP will execute. Within NOOP, lets say I have a data field FLAG2. In NOOP, I am initializing this FLAG2 value to "Yes". After NOOP is executed, I added a data Connector to the Sink of the Block.

I changed the Block exit condition to be FLAG1="Yes" OR FLAG2="Yes".

On the whole, if any of the activities in that Block are force finished NOOP will execute and passes the FLAG2 value (Yes) to sink.

I am posting this in a hurry, so I think its little bit confusing, if it is please let me know, and I will edit my post later.

Thanks
_________________
CHF
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jmac
PostPosted: Tue Dec 14, 2004 11:52 am    Post subject: Reply with quote

Jedi Knight

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

CHF:

Thanks
_________________
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
CHF
PostPosted: Tue Dec 14, 2004 12:32 pm    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

Quote:
If I want to use a Block, which export type should I use Block or Activity?

I believe I should use export type "Block", as it says in "Continuous Business Process Management - HOLOSOX" manual.

Weird thing is, if I use export type Block, I cannot use _State function in the End expression for that Block.

LOL: Spent hours n hours on this.
HOLOSOFX SUCKS
_________________
CHF
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jmac
PostPosted: Tue Dec 14, 2004 1:05 pm    Post subject: Reply with quote

Jedi Knight

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

CHF:

Sorry I didn't see your question about the export type.

Yes you have to export as a block, if you were to export as an activity you would get a program activity.

The problem you are having is that the referback you are trying to do is not possible when the activity you wish to refer to is imbeded in the block. I have seen this before. Generally I think referbacks must be to previous activites, and when you specify on a block exit, that activity has not yet been hit.

Quote:
HOLOSOFX SUCKS


Ah... but who owns the product now??? Don't answer that.
_________________
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]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.