Sha256: f299fd13ac4c6476fa21d6278e37cf1372591f4f36e6c3cfc888e16f15a6d21a

Contents?: true

Size: 797 Bytes

Versions: 1

Compression:

Stored size: 797 Bytes

Contents

module Asposetasksjava
  module PredecessorAndSuccessorTask
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
                
        # Instantiate project object
        project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp')

        tsk = Rjb::import('com.aspose.tasks.Tsk')

    	  allinks = project.getTaskLinks().toList()

        i = 0
        while i < allinks.size()
          tsklnk = allinks.get(i)
          puts "Predecessor " + tsklnk.getPredTask().get(tsk.NAME).to_string
          puts "Successor " + tsklnk.getSuccTask().get(tsk.NAME).to_string
          puts "------------------------------------------------------"
          i +=1
        end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/TaskLinks/predecessorandsuccessortask.rb