Advanced Condition "changes to"

xiaix
Tera Guru

Trying to convert this:

find_real_file.png

Into script.

Example:

find_real_file.png

I know that my .CHANGESTO is illegal, but It's to illustrate my point.

How can I get "changes to" into script?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi David,



In a before or after business rule, you can use current.field.changesTo(value).



Example:



current.active.changesTo(false)


View solution in original post

8 REPLIES 8

Can I use  this in Email Notifications (Advance View)

I only recommend using this if the condition builder does not offer what you need. in your other message, you are looking for changesFrom() and changesTo(). Those are both available on the state (extended from task) in the condition builder.

Use the condition builder when possible to keep things easy to read, build, and maintain.

Deepthi25
Giga Expert

Hi Tomasi,



can i know can we do other field mandatory in state changesfrom condition through business rule.


You can check for mandatory fields and NOT process the business if the field is empty just by adding to the condition



Field name | is not empty



Example:


find_real_file.png