Hi Nick,
This should work as follows:
ProcessModelPreStep callback contains the step, which calls to the function in my dll:
PreStep("Parameters.Step").
void PreStep(CAObjHandle hStep)
{
BOOL bIsSkipRequired=FALSE;
bIsSkipRequired=DetermineWhetherSkipRequired();
if(bIsSkipRequired)
{
//Configure step to be skipped
}
}
Consider that the "side software" is DetermineWhetherSkipRequired() function.
The difficulty is to perform skip itself (commented line).
I tried to do this by two different ways:
1. TS_StepSetRunModeEx(hStep, 0, TS_RunMode_Skip, CA_DEFAULT_VAL);
2. TS_StepSetProperty(hStep, 0, TS_StepPrecondition, CAVT_CSTRING, "false");
Neither of both attempts succeed.
In both cases I observe the similar behaviour
:
1. the step is executing
2. only after the step execution is completed, execution flow field of TS Sequence Editor is updated as desired.
It seems me like Execution object not accepts the changes made on step.
I need something like "refresh".
Thanks.
Misha