|
Home > Archive > BizTalk Server Tools > November 2004 > Interesting problem while Creating Activity Model
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Interesting problem while Creating Activity Model
|
|
| zeynep 2004-10-15, 9:09 pm |
| Hello,
I have an activity model design and I am constructing my activity model from
this design. The problem is when I want to add a transition as I explained
below it gives the exception:
A non-loop transition with the specified child step already exists.
Steps can be the child of only one non-loop transition at most.
Here is my activity model design:
step1, step2, step3, step4, step5, step6
transition12 (step1-to-step2), transition 13, transition 31, transition 25,
transition52, transition 53, transition24, transition41, transition26
If you draw the diagram the transition from step5 to step3 throws exception
when I try to add it.
activityModel.AddStep(actionID, out step);
activityModel. AddTransition(sourceStepId,destinationSt
epId,
isDependentComposition[false valued], "", "", out transition);
Do you have any idea about this problem? Thanks...
| |
| Chris Whytock[MSFT] 2004-11-11, 8:46 pm |
|
This behaviour is by design. As the APi tells you, any step can be the
child of at most one non-lopp transition. Put another way, activity models
do not support the concept of "merging" paths of execution which have
diverged.
A simple example is: Imagine I have a root action, A, which has 2 child
actions, B and C. There's a transition from A->B and A->C. I now add an
action D, as a child of B, so I have a transition B->D. If I try to add a
transition from C->D, I'll get that exception, since there's already a
transition which has D as a child that is not a loop transition (the B->D
transition). This is simply a limitation that exists in activity models,
sorry.
--Chris
--------------------[vbcol=seagreen]
from[vbcol=seagreen]
explained[vbcol=seagreen]
25,[vbcol=seagreen]
exception[vbcol=seagreen]
This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team
|
|
|
|
|