Skip to main content
Solved

Conditional Expression for Decision Automation in IFS Assyst

  • Apr 11, 2025 11:23 AM UTC
  • 2 replies
  • 118 views

Forum|alt.badge.img+1

Hi everyone,

I'm working on automating a Decision within a process in IFS Assyst. I've added a custom field called "Project Hours", and I want the process to automatically take a certain path if the value entered in this field exceeds a specified threshold.

To achieve this, I tried using the following condition in the Decision:

$new.W("PROJECT HOURS").shortcode > 150 

Unfortunately, this condition doesn't seem to work as expected. Has anyone implemented something similar or could point out if there's something wrong with my expression? Appreciate any help or suggestions!

Thanks in advance.

Best answer by Rajana

Hello Ramesh,

I believe the custom field “PROJECT HOURS” type is set as integer? 
Integer data type does not support decimal values. If you want to evaluate something like >150.2 change the custom field data type to string

If the custom field type is either integer or string use the following expression on the decision condition : $new.parentEvent.W("PROJECT HOURS").shortCode > 150

View original

2 replies

Forum|alt.badge.img+5
  • Hero (Employee)
  • Answer
  • Apr 13, 2025 6:22 AM UTC

Hello Ramesh,

I believe the custom field “PROJECT HOURS” type is set as integer? 
Integer data type does not support decimal values. If you want to evaluate something like >150.2 change the custom field data type to string

If the custom field type is either integer or string use the following expression on the decision condition : $new.parentEvent.W("PROJECT HOURS").shortCode > 150


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • Apr 14, 2025 6:34 AM UTC

Thank you, Rajana. It works.