Book a Demo

Author Topic: Detecting Change to the "Notes" field  (Read 3752 times)

Nick Pearce

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Detecting Change to the "Notes" field
« on: November 18, 2010, 03:31:17 am »
Hi everyone, I'm very new to the scripting engine in EA and I'd like to get your thoughts on a solution.

Given a requirement, I would like the status of a Requirement to change back to "Proposed" if someone edits it when it has a status of "Approved". The purpose here would be to prevent people from tinkering with approved requirements.

I've been playing with the workflow scripts and haven't been able to determine how to detect if the "Notes" field has changed in order to flip the status back.

If there's a better line of thinking here, I'm open to suggestions!

Thanks in advance

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Detecting Change to the "Notes" field
« Reply #1 on: November 18, 2010, 08:43:59 am »
Workflow scripts can't change anything on the elements.  Look at an add-in and implementing EA_OnNotifyContextItemModified.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Detecting Change to the "Notes" field
« Reply #2 on: November 18, 2010, 04:58:47 pm »
I'm not sure, but you might need to use EA_OnContextItemChanged to get the "before" state.

Geert