Quantcast
Channel: Ivanti User Community : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2325

Problem with a condition calculation

$
0
0

HI All

 

I'm having another problem with a simple calculation in a pre-condition:

 

import System
static def GetAttributeValue(Request):
Value = 'False'
for item in Request.Tasks:
  if item.Category.Title == 'Build Task' and item.Status.Title == 'Completed':
   Value = 'True'
return Value

 

I use this precondition to setup mulitple parallel and seiral tasks.  However, when this pre-condition is used after several add tasks and when the other tasks are completed, then I get an unusal error where the following automatic action add task after the pre-condition suddenly becomes an action instead.

 

Once I remove the calcultion condition then everything flows ok so I'm assuming it's the calculation that's causing my issues.


Viewing all articles
Browse latest Browse all 2325

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>