joel_wiesmann_automic

ApplicationInterface API - copy task settings / runtime issue

Discussion created by joel_wiesmann_automic on Jan 26, 2017
Latest reply on Jan 30, 2017 by joel_wiesmann_automic

Hi there

Anyone achived to copy task settings or postconditions? If a task has no postconditions at all it seems to return null.https://docs.automic.com/documentation/webhelp/english/ALL/components/AE/latest/API/com/uc4/api/objects/class-use/ConditionsSet.html references several "get"-methods but how can I actually SET them?


Also I did modify the runtime settings of a task:
$runtime = $task.runtime()
$runtime.setUseTaskSettings($false)
$runtime.setCancelJobAboveMRT($true)
$mrt = $runtime.maximumRuntime()
$mrt.setMethodFixedValue(900)

 

This did work and also is functional when tested, however the representation is buggy (see screenshot) - the "None"s are irritating.

 

9k9oldnsrhu2.jpg

Outcomes