Change Progress of a Task in Ruby

Aspose.Tasks - Change Progress of a Task

To Change Progress of a Task presentation using Aspose.Tasks Java for Ruby, simply invoke ChangeProgressOfTask module. Here you can see example code.

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new
 2
 3puts project.getCalculationMode()
 4
 5task = project.getRootTask().getChildren().add("Task")
 6
 7tsk = Rjb::import('com.aspose.tasks.Tsk')
 8
 9task.set(tsk.DURATION, project.getDuration(2))
10
11task.set(tsk.PERCENT_COMPLETE, 50)
12
13puts "Changed progress of task."

Download Running Code

Download Change Progress of a Task (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.