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_");
235 if ($this->mChildren == null) {
236 $this->mChildren = array();
238 if ($this->mActiveChildren == null) {
239 $this->mActiveChildren = array();
243 $c_ioChild[
'_SeqActivity']=$ioChild;
246 array_push($this->mChildren,$c_ioChild);
251 $ioChild->setOrder(count($this->mChildren) - 1);
252 $ioChild->setActiveOrder(count($this->mChildren)- 1);
260 $this->mOrder = $iOrder;
264 $this->mActiveOrder = $iOrder;
268 $this->mParent = $iParent;
275 $this->mActivityID = $id;
279 $this->mResourceID = $id;
283 $this->mIsVisible = $visible;
287 $this->mControl_choice=$choice;
291 $this->mControl_choiceExit=$choiceExit;
295 $this->mControl_flow=$flow;
299 $this->mControl_forwardOnly=$forwardOnly;
303 $this->mUseCurObj=$useCurObjective;
307 $this->mUseCurPro=$useCurProgress;
312 $this->mMaxAttemptControl =
true;
313 $this->mMaxAttempt = $value;
316 $this->mMaxAttemptControl =
false;
317 $this->mMaxAttempt = -1;
322 if ( $iDur != null ) {
323 $this->mActivityAbDurControl =
true;
329 $this->mActivityAbDurControl =
false;
334 if ( $iDur != null ) {
335 $this->mAttemptExDurControl =
true;
341 $this->mAttemptExDurControl =
false;
348 $this->mActivityAbDurControl =
true;
353 $this->mActivityAbDurControl =
false;
360 $this->mmActivityExDurControl =
true;
365 $this->mmActivityExDurControl =
false;
370 if ( $iTime != null )
372 $this->mBeginTimeControl =
true;
373 $this->mBeginTime = $iTime;
377 $this->mBeginTimeControl =
false;
382 if ( $iTime != null )
384 $this->mEndTimeControl =
true;
385 $this->mEndTime = $iTime;
389 $this->mEndTimeControl =
false;
395 if ( !($this->iTiming == TIMING_NEVER ||
399 $this->mSelectTiming = TIMING_NEVER;
403 $this->mRandomTiming = $iTiming;
410 $this->mSelectStatus =
true;
411 $this->mSelectCount = $iCount;
415 $this->mSelectStatus =
false;
421 $this->mReorder = $iReorder;
428 if ( !($this->iTiming == TIMING_NEVER ||
432 $this->mSelectTiming = TIMING_NEVER;
436 $this->mSelectTiming = $iTiming;
442 $this->mIsTracked = $iTracked;
446 $this->mContentSetsCompletion = $iSet;
450 $this->mContentSetsObj = $iSet;
454 $this->mPreventActivation = $iPreventActivation;
458 $this->mConstrainChoice = $iConstrainChoice;
462 $this->mRequiredForSatisfied = $iConsider;
466 $this->mRequiredForNotSatisfied = $iConsider;
470 $this->mRequiredForCompleted = $iConsider;
474 $this->mRequiredForIncomplete = $iConsider;
478 $this->mActiveMeasure = $iActiveMeasure;
486 $this->mPreConditionRules = $iRuleSet;
490 $this->mExitActionRules = $iRuleSet;
494 $this->mPostConditionRules = $iRuleSet;
498 $this->mObjectives = $iObjs;
499 for ( $i = 0; $i < count($iObjs); $i++ ) {
501 if ($obj[
'_SeqObjective']->mMaps!=null) {
502 $index=$obj[
'_SeqObjective']->mObjID;
503 $this->mObjMaps[
"$index"]=$obj[
'_SeqObjective']->mMaps;
509 $this->mIsObjectiveRolledUp = $iRolledup;
513 $this->mObjMeasureWeight = $iWeight;
517 $this->mIsProgressRolledUp = $iRolledup;
521 $this->mRollupRules = $iRuleSet;
525 $this->mAuxResources = $iRes;