How to process an event only when value changed (to a target value) within an interface?

Hello,

I want an event to happen (send email) after submitting a user interface (form) only if a certain attribute has been changed. I figured that I would need the old and the new value of this attribute in the process.

What would be a good way to achieve this?

Thank you in advance

  Discussion posts and replies are publicly visible

Parents
  • Hello , Hello ,

    thank you for your suggestions.

    I was able to achieve my goal doing the following:

    • Interface
      • new rule input valueChanged as Boolean
      • local variable oldValue set to the value I want to monitor by using a!refreshVariable(value: ri![MY_VALUE], refreshOnReferencedVarChange: false)
      • Submit-Button saveInto: a!save(ri!valueChanged, if(local!oldValue<>ri![MY_VALUE], TRUE, FALSE))
    • Process
      • add process variable (and assign it to the rule input)
      • add process logic accordingly

    KR
    Thomas

Reply
  • Hello , Hello ,

    thank you for your suggestions.

    I was able to achieve my goal doing the following:

    • Interface
      • new rule input valueChanged as Boolean
      • local variable oldValue set to the value I want to monitor by using a!refreshVariable(value: ri![MY_VALUE], refreshOnReferencedVarChange: false)
      • Submit-Button saveInto: a!save(ri!valueChanged, if(local!oldValue<>ri![MY_VALUE], TRUE, FALSE))
    • Process
      • add process variable (and assign it to the rule input)
      • add process logic accordingly

    KR
    Thomas

Children