Defining Link Type in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Defining Link Type
To Define Link Type using Aspose.Tasks Java for Ruby, simply invoke DefineLinkType module. Here you can see example code.
Ruby Code
1project = Rjb::import('com.aspose.tasks.Project').new
2pred = project.getRootTask().getChildren().add("Task 1")
3succ = project.getRootTask().getChildren().add("Task 2")
4link = project.getTaskLinks().add(pred, succ)
5link.setLinkType(Rjb::import('com.aspose.tasks.TaskLinkType').StartToStart)
6puts "Defined task link type."
Download Running Code
Download Defining Link Type (Aspose.Tasks) from any of the below mentioned social coding sites: