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 Activity - Exit Condition

Post new topic  Reply to topic
 Block Activity - Exit Condition « View previous topic :: View next topic » 
Author Message
nboucher
PostPosted: Thu Apr 25, 2002 12:56 pm    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

Hi,

I am trying to understand of Activity block and Exit condition work.
So here an example of what I try to do:

Let's assume that I gave Data Structure called DSTest that have the following:
element:

Name string
Action long

The Datastucture is set when the process started, then based on the name I called a Block Activity which executed 2 activities one after the other. The
DSTest data structure is always specify as input/output and map from one activity to the other from the starting point of the process.

I am missing something because the exit condition do not seems to work for me...
When the process started, I entered the following value to the process DataStructure input:

Name=Michel
Action=0

I specified under the Exit Tab of the block activity the following:
Action=0...

FOR TESTING, I never modified the "Action" value which is equal to 0 from the beginning of the process so....in theorie, my block activity should never loop and exit after the first execution of the activities in the block, no?...in my case it keeps looping...why????

Thanks...

Back to top
View user's profile Send private message
nboucher
PostPosted: Thu Apr 25, 2002 1:54 pm    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

Actually...

I know what is my problem...In order to try to figure out what is wrong, my first activity in the Block Activity display the Data Container infos and the sturcture member

Name
Action

are not set...

I did a map the data, etc...I don't know why it is not being set any idea what I am missing?

Thanks...
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Apr 25, 2002 3:17 pm    Post subject: Reply with quote

Jedi Knight

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

If you send me your FDL I can have a look. WIthout seeing that I can only guess.

1) Did you map the data from the Source Icon to the block Icon?

2) Did you map the data from the block source icon to the program activity?

3) Do you map any changes to the block sink icon?

4) Do you have a looping connector on the block?



_________________
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
vedbhat
PostPosted: Thu Apr 25, 2002 5:25 pm    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 186
Location: Singapore

Hi,

Inorder to check whether your flow is correct use the fmcnshow.exe instead of your program. Move the expected value from the Input to the Output and change if necessary and then check whether the block works as your expected.

If Block works as expected then something is wrong in the program.

I hope this will help you to solve the problem.

Regards
Ved

_________________
IBM Certified Solutions Expert - MQSeries Workflow
IBM Certified Specialist - MQSeries
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
nboucher
PostPosted: Thu Apr 25, 2002 7:30 pm    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

FYI,
The following is a summary of 3 emails that went back and forth between
me and John McDonald following the previous email where he asked me
to send him my .fdl file

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FROM JOHN:
++++++++++
Nadine:

What does "Do Nothing" do with the data.

Unless it moves the data from its input to its output container, then
there
is NOTHING to be mapped. I.E. you are seeing the results that you
should.

3 ways to fix:

1) QUICK, put a data default connector on the Do Nothing Activity.

2) More difficult, modify the Do Nothing Activity, to copy input
container data to output container.

3) BEST, if you can do this, based on the name I assume that "Do Nothing"
DOES NOTHING, therefore the data in the source is the same as the data
that you want to have in the block. SO, if this is correct, I would remove
the data connector from Do Nothing to the block AND add a connector from the
Source to the block


GOOD LUCK
John McDonald SYSCOM Inc.



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FROM NADINE:
++++++++++++
John!!!!!


Thank you very much, it work like you said....I though that the data from
the input container was copied automatically to the output container!!!!!!

Actually, if you don't mind I would like to ask another "Design question"
to you regarding what you mentionned in 3) below.
For now my first program activity (Do Nothing) do nothing...but eventually
I wanted to branch on different path based on the PendCode
part of the IPDDoc datastructure specify in the inputContainer of the
process...since I can't uses a control connector from the source object...I
have to uses a DUMMY program activity right???? Any better design than
that?

Thanks again John!!!!
Nadine



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FROM JOHN:
++++++++++
Nadine:

You are correct... You can not start with a decision. What you are doing
is the common way around this problem.

GOOD LUCK

******************************************************************
John McDonald SYSCOM Inc.
Back to top
View user's profile Send private message
nboucher
PostPosted: Thu Apr 25, 2002 7:31 pm    Post subject: Reply with quote

Novice

Joined: 20 Apr 2002
Posts: 24

Ved,

Thanks also for your reply/suggestions!!!!!

Thanks
Back to top
View user's profile Send private message
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 Activity - 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.