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_");
58 define(
"TIMING_NEVER",
"never");
243 if ($this->mChildren == null) {
244 $this->mChildren = array();
246 if ($this->mActiveChildren == null) {
247 $this->mActiveChildren = array();
251 $c_ioChild[
'_SeqActivity'] = $ioChild;
254 array_push($this->mChildren, $c_ioChild);
259 $ioChild->setOrder(count($this->mChildren) - 1);
260 $ioChild->setActiveOrder(count($this->mChildren) - 1);
268 $this->mOrder = $iOrder;
273 $this->mActiveOrder = $iOrder;
278 $this->mParent = $iParent;
286 $this->mActivityID =
$id;
291 $this->mResourceID =
$id;
296 $this->mIsVisible = $visible;
301 $this->mProgressThreshold = $compThresh;
306 $this->mProgressDeterminedByMeasure = $compbm;
311 $this->mProgressWeight = $progweight;
316 $this->mControl_choice = $choice;
321 $this->mControl_choiceExit = $choiceExit;
326 $this->mControl_flow = $flow;
331 $this->mControl_forwardOnly = $forwardOnly;
336 $this->mUseCurObj = $useCurObjective;
341 $this->mUseCurPro = $useCurProgress;
347 $this->mMaxAttemptControl =
true;
348 $this->mMaxAttempt = $value;
350 $this->mMaxAttemptControl =
false;
351 $this->mMaxAttempt = -1;
358 $this->mActivityAbDurControl =
true;
363 $this->mActivityAbDurControl =
false;
370 $this->mAttemptExDurControl =
true;
374 $this->mAttemptExDurControl =
false;
381 $this->mActivityAbDurControl =
true;
384 $this->mActivityAbDurControl =
false;
391 $this->mmActivityExDurControl =
true;
394 $this->mmActivityExDurControl =
false;
400 if ($iTime != null) {
401 $this->mBeginTimeControl =
true;
402 $this->mBeginTime = $iTime;
404 $this->mBeginTimeControl =
false;
410 if ($iTime != null) {
411 $this->mEndTimeControl =
true;
412 $this->mEndTime = $iTime;
414 $this->mEndTimeControl =
false;
426 $this->mRandomTiming = $iTiming;
433 $this->mSelectStatus =
true;
434 $this->mSelectCount = $iCount;
436 $this->mSelectStatus =
false;
442 $this->mReorder = $iReorder;
455 $this->mSelectTiming = $iTiming;
461 $this->mIsTracked = $iTracked;
466 $this->mContentSetsCompletion = $iSet;
471 $this->mContentSetsObj = $iSet;
476 $this->mPreventActivation = $iPreventActivation;
481 $this->mConstrainChoice = $iConstrainChoice;
486 $this->mRequiredForSatisfied = $iConsider;
491 $this->mRequiredForNotSatisfied = $iConsider;
496 $this->mRequiredForCompleted = $iConsider;
501 $this->mRequiredForIncomplete = $iConsider;
506 $this->mActiveMeasure = $iActiveMeasure;
516 $this->mPreConditionRules = $iRuleSet;
521 $this->mExitActionRules = $iRuleSet;
526 $this->mPostConditionRules = $iRuleSet;
531 $this->mObjectives = $iObjs;
532 for (
$i = 0;
$i < count($iObjs);
$i++) {
534 if ($obj[
'_SeqObjective']->mMaps != null) {
535 $index = $obj[
'_SeqObjective']->mObjID;
536 $this->mObjMaps[
"$index"] = $obj[
'_SeqObjective']->mMaps;
543 $this->mIsObjectiveRolledUp = $iRolledup;
548 $this->mObjMeasureWeight = $iWeight;
553 $this->mIsProgressRolledUp = $iRolledup;
558 $this->mRollupRules = $iRuleSet;
563 $this->mAuxResources = $iRes;
$mRequiredForNotSatisfied
setRandomTiming($iTiming)
setSelectionTiming($iTiming)
setRequiredForSatisfied($iConsider)
setRollupRules($iRuleSet)
setPreSeqRules($iRuleSet)
setSatisfactionIfActive($iActiveMeasure)
setUseCurProgress($useCurProgress)
setObjMeasureWeight($iWeight)
if(!array_key_exists('StateId', $_REQUEST)) $id
setRequiredForCompleted($iConsider)
setControlModeChoiceExit($choiceExit)
setCompletedByMeasure($compbm)
setPreventActivation($iPreventActivation)
setReorderChildren($iReorder)
setCompletionThreshold($compThresh)
setControlForwardOnly($forwardOnly)
$mProgressDeterminedByMeasure
setControlModeFlow($flow)
setExitSeqRules($iRuleSet)
setRequiredForNotSatisfied($iConsider)
setUseCurObjective($useCurObjective)
setBeginTimeLimit($iTime)
setIsObjRolledUp($iRolledup)
setConstrainChoice($iConstrainChoice)
const ROLLUP_CONSIDER_ALWAYS
setIsProgressRolledUp($iRolledup)
setRequiredForIncomplete($iConsider)
setControlModeChoice($choice)
setPostSeqRules($iRuleSet)
setProgressWeight($progweight)