Predecessor and Successor Tasks in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Predecessor and Successor Tasks
To get Predecessor and Successor Tasks using Aspose.Tasks Java for Ruby, simply invoke PredecessorAndSuccessorTask module. Here you can see example code.
Ruby Code
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2tsk = Rjb::import('com.aspose.tasks.Tsk')
3allLinks = project.getTaskLinks().toList()
4i = 0
5while i < allLinks.size()
6 taskLink = allLinks.get(i)
7 puts "Predecessor " + taskLink.getPredTask().get(tsk.NAME).to_string
8 puts "Successor " + taskLink.getSuccTask().get(tsk.NAME).to_string
9 puts "------------------------------------------------------"
10 i += 1
11end
Download Running Code
Download Predecessor and Successor Tasks (Aspose.Tasks) from any of the below mentioned social coding sites: