Handling Critical and Effort-Driven Tasks
Aspose.Tasks - Handling Critical and Effort-driven Tasks
To Handle Critical and Effort-driven Tasks using Aspose.Tasks Java for PHP, simply invoke CriticalAndEffortDrivenTasks module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2
3$collector = new ChildTasksCollector();
4
5$taskUtils = new TaskUtils();
6
7$taskUtils->apply($project->getRootTask(), $collector, 0);
8
9$tsk = new Tsk();
10
11$tasks = $collector->getTasks();
12
13$i = 0;
14
15while ($i < sizeof($tasks))
16
17{
18
19 $task = $tasks -> get($i);
20
21 print $str_effort_driven = $task -> get($tsk -> IS_EFFORT_DRIVEN) != null ? "\nEffortDriven" : "\nNon-EffortDriven";
22
23 print $str_is_critical = $task -> get($tsk -> IS_CRITICAL) != null ? "\nCritical" : "\nNon-Critical";
24
25 $i += 1;
26
27}
Download Running Code
Download Handling Critical and Effort-driven Tasks (Aspose.Tasks) from any of the below mentioned social coding sites: