Author |
Message
|
pingwf |
Posted: Thu May 12, 2005 11:48 am Post subject: Block Exit Condition |
|
|
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 |
|
 |
Ratan |
Posted: Thu May 12, 2005 12:21 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I think it is <BlockName>.<ActivityName> _________________ -Ratan |
|
Back to top |
|
 |
pingwf |
Posted: Thu May 12, 2005 12:47 pm Post subject: |
|
|
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 |
|
 |
kotha |
Posted: Thu May 12, 2005 12:58 pm Post subject: |
|
|
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 |
|
 |
pingwf |
Posted: Fri May 13, 2005 11:19 am Post subject: |
|
|
Novice
Joined: 09 Dec 2002 Posts: 23
|
|
Back to top |
|
 |
jmac |
Posted: Fri May 13, 2005 3:05 pm Post subject: |
|
|
 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 |
|
 |
|