Author |
Message
|
golam_m |
Posted: Thu Dec 22, 2005 8:43 pm Post subject: Problem with Data Default Connector in Automatic Activity |
|
|
Apprentice
Joined: 10 Oct 2005 Posts: 48
|
Hi,
I have an automatic activity from which two control connectors are connected to two other activities. I am using a Data structure "Person" in all my activities. It has two attributes - PersonId1 and PersonId2. Both of them are Variable Length String type. I have set the transition condition as PersonId1 NOT NULL and PersonId2 NOT NULL in above two control connectors. I have put a Data Default Connector with the automatic activity from which the dicision is taking place as to which branch to go. But, in the runtime always both paths are being taken irrespective of putting any values to either of PersonId1 or PersonId2.
Please advise.
Thanks, |
|
Back to top |
|
 |
kotha |
Posted: Fri Dec 23, 2005 7:39 am Post subject: |
|
|
Partisan
Joined: 12 Mar 2005 Posts: 333
|
may be both personId1 and personId2 are null. and also check the syntax for the conditions. |
|
Back to top |
|
 |
golam_m |
Posted: Tue Dec 27, 2005 1:08 am Post subject: |
|
|
Apprentice
Joined: 10 Oct 2005 Posts: 48
|
syntax is correct only. One thing I want to let you know is that; when I am setting the variables PersonId1 and PersonId2 as type LONG instead of Variable Length String then it works fine.
Thanks, |
|
Back to top |
|
 |
jmac |
Posted: Tue Dec 27, 2005 7:54 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
golam_m wrote: |
syntax is correct only. One thing I want to let you know is that; when I am setting the variables PersonId1 and PersonId2 as type LONG instead of Variable Length String then it works fine.
Thanks, |
If what you are saying here is correct, I would open a PMR _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
golam_m |
Posted: Tue Dec 27, 2005 10:23 pm Post subject: |
|
|
Apprentice
Joined: 10 Oct 2005 Posts: 48
|
Thanks in advance jmac.
Please open the PMR. |
|
Back to top |
|
 |
jmac |
Posted: Wed Dec 28, 2005 7:04 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
golam_m wrote: |
Thanks in advance jmac.
Please open the PMR. |
I cant open it... you have to  _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
fidelio |
Posted: Tue Jan 03, 2006 8:50 am Post subject: |
|
|
Apprentice
Joined: 14 Sep 2005 Posts: 45 Location: AttainBPM
|
Are you using the web client at any point in the process? Strings in WF can be empty ("") and therefore not NULL - the web client tends to set Strings as empty on check-in instead of NULL, whereas a number value will be NULL if it hasn't been assigned a value. A best practice would be to have your transition conditions check for empty Strings as well as NULL (i.e. PersonId1 NOT NULL AND PersonId1 <> ""). |
|
Back to top |
|
 |
|