[Ctk-developers] Another ctkWorkflow thingie: goToStep(..) goes always back to starting step
Daniel Haehn
haehn at bwh.harvard.edu
Fri Jun 3 19:34:51 UTC 2011
Hi guys,
if I use ctkWorkflow.goToStep(x), the workflow goes to the step x
along the workflow (according to onEntry, validate and onExit calls).
But then, after reaching step x, it goes directly back to where I am
coming from - again along the workflow. This goes so fast so it seems
there is no movement at all.
I digged a little and it seems line 1035 in ctkWorkflow.cpp is not
right? After reaching the 'finish step' (which in my understanding is
the target step), it goes back to the starting step.
1019 // --------------------------------------------------------------------------
1020 void ctkWorkflow::goToStepSucceeded()
1021 {
1022 Q_D(ctkWorkflow);
1023
1024 logger.debug("goToStepSucceeded");
1025
1026 // after success, go back to the step at which we begin looking for
1027 // the finish step (will exit the current step and enter the
starting step)
1028
1029 d->createTransitionToPreviousStartingStep(d->StartingStep,
d->CurrentStep);
1030
1031 d->GoToStep = 0;
1032 d->StartingStep->setStatusText("Attempt to go to the finish
step succeeded");
1033 d->StartingStep = 0;
1034
1035 this->goFromGoToStepToStartingStep();
1036 }
1037
Is this correct behavior and I understand the goToStep(x) call wrong
or is this a bug?
Cheers,
Daniel
More information about the Ctk-developers
mailing list