1
General Board / Re: Usecase through javascript code
« on: July 18, 2012, 05:22:44 pm »
for alternative path i solved it with this source code:
If you need other any other explanation write me I'm happy to help you
Code: [Select]
st = steps.GetAt(n);
extensions = st.Extensions;
extension = extensions.AddNew("Step "+n+" Alternative flow","Alternate");
sceneAlt = extension.Scenario;
stepsAl = sceneAlt.Steps;
stepAl = stepsAl.AddNew(name,"Alternate");
.
.
.
stepAl.Update();
stepsAl.Refresh();
sceneAlt.Update();
steps = scene.Steps;
step = steps.GetAt(n1);
extension.Join = step.StepGUID;
extension.Update();
extensions.Refresh();
If you need other any other explanation write me I'm happy to help you