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 Ruby, simply invoke CriticalAndEffortDrivenTasks module. Here you can see example code.

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2
 3collector = Rjb::import('com.aspose.tasks.ChildTasksCollector').new
 4
 5Rjb::import('com.aspose.tasks.TaskUtils').apply(project.getRootTask(), collector, 0)
 6
 7tsk = Rjb::import('com.aspose.tasks.Tsk')
 8
 9tasks = collector.getTasks()
10
11i = 0
12
13while i < tasks.size()
14
15    task = tasks.get(i)
16
17    puts str_ed = task.get(tsk.IS_EFFORT_DRIVEN) != nil ? "EffortDriven" : "Non-EffortDriven"
18
19    puts str_crit = task.get(tsk.IS_CRITICAL) != nil ? "Critical" : "Non-Critical"
20
21    i += 1
22
23end

Download Running Code

Download Handling Critical and Effort-driven Tasks (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.