52 require_once(
"SeqObjective.php");
53 require_once(
"SeqRollupRule.php");
55 define(
"TIMING_ONCE",
"once");
56 define(
"TIMING_EACHNEW",
"onEachNewAttempt");
57 define(
"TER_EXITALL",
"_EXITALL_");
241 if ($this->mChildren == null) {
242 $this->mChildren = array();
244 if ($this->mActiveChildren == null) {
245 $this->mActiveChildren = array();
249 $c_ioChild[
'_SeqActivity']=$ioChild;
252 array_push($this->mChildren,$c_ioChild);
257 $ioChild->setOrder(count($this->mChildren) - 1);
258 $ioChild->setActiveOrder(count($this->mChildren)- 1);
266 $this->mOrder = $iOrder;
270 $this->mActiveOrder = $iOrder;
274 $this->mParent = $iParent;
281 $this->mActivityID = $id;
285 $this->mResourceID = $id;
289 $this->mIsVisible = $visible;
293 $this->mProgressThreshold = $compThresh;
297 $this->mProgressDeterminedByMeasure = $compbm;
301 $this->mProgressWeight = $progweight;
305 $this->mControl_choice=$choice;
309 $this->mControl_choiceExit=$choiceExit;
313 $this->mControl_flow=$flow;
317 $this->mControl_forwardOnly=$forwardOnly;
321 $this->mUseCurObj=$useCurObjective;
325 $this->mUseCurPro=$useCurProgress;
330 $this->mMaxAttemptControl =
true;
331 $this->mMaxAttempt = $value;
334 $this->mMaxAttemptControl =
false;
335 $this->mMaxAttempt = -1;
340 if ( $iDur != null ) {
341 $this->mActivityAbDurControl =
true;
347 $this->mActivityAbDurControl =
false;
352 if ( $iDur != null ) {
353 $this->mAttemptExDurControl =
true;
359 $this->mAttemptExDurControl =
false;
366 $this->mActivityAbDurControl =
true;
371 $this->mActivityAbDurControl =
false;
378 $this->mmActivityExDurControl =
true;
383 $this->mmActivityExDurControl =
false;
388 if ( $iTime != null )
390 $this->mBeginTimeControl =
true;
391 $this->mBeginTime = $iTime;
395 $this->mBeginTimeControl =
false;
400 if ( $iTime != null )
402 $this->mEndTimeControl =
true;
403 $this->mEndTime = $iTime;
407 $this->mEndTimeControl =
false;
413 if ( !($this->iTiming == TIMING_NEVER ||
417 $this->mSelectTiming = TIMING_NEVER;
421 $this->mRandomTiming = $iTiming;
428 $this->mSelectStatus =
true;
429 $this->mSelectCount = $iCount;
433 $this->mSelectStatus =
false;
439 $this->mReorder = $iReorder;
446 if ( !($this->iTiming == TIMING_NEVER ||
450 $this->mSelectTiming = TIMING_NEVER;
454 $this->mSelectTiming = $iTiming;
460 $this->mIsTracked = $iTracked;
464 $this->mContentSetsCompletion = $iSet;
468 $this->mContentSetsObj = $iSet;
472 $this->mPreventActivation = $iPreventActivation;
476 $this->mConstrainChoice = $iConstrainChoice;
480 $this->mRequiredForSatisfied = $iConsider;
484 $this->mRequiredForNotSatisfied = $iConsider;
488 $this->mRequiredForCompleted = $iConsider;
492 $this->mRequiredForIncomplete = $iConsider;
496 $this->mActiveMeasure = $iActiveMeasure;
500 $this->mTitle = $title;
504 $this->mPreConditionRules = $iRuleSet;
508 $this->mExitActionRules = $iRuleSet;
512 $this->mPostConditionRules = $iRuleSet;
516 $this->mObjectives = $iObjs;
517 for ( $i = 0; $i < count($iObjs); $i++ ) {
519 if ($obj[
'_SeqObjective']->mMaps!=null) {
520 $index=$obj[
'_SeqObjective']->mObjID;
521 $this->mObjMaps[
"$index"]=$obj[
'_SeqObjective']->mMaps;
527 $this->mIsObjectiveRolledUp = $iRolledup;
531 $this->mObjMeasureWeight = $iWeight;
535 $this->mIsProgressRolledUp = $iRolledup;
539 $this->mRollupRules = $iRuleSet;
543 $this->mAuxResources = $iRes;