Author Topic: Automatically change 'Status' to "proposed' on change  (Read 309 times)

amacara1

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Automatically change 'Status' to "proposed' on change
« on: January 18, 2023, 07:33:04 pm »
Please, is there a way to have EA automatically change 'Status' field of an element to 'Proposed' whenever that element is modified?
By modified I mean a change in its content took place: notes, attributes, links, etc, but not added/deleted to/from diagrams.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12349
  • Karma: +490/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatically change 'Status' to "proposed' on change
« Reply #1 on: January 18, 2023, 07:58:51 pm »
Yes, but you'll need to write some add-in that runs in the EA_OnContextItemModified

Options are:
- Use a Model Addin: https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/modeladdins.html
- Write an EA-Matic script: https://bellekens.com/ea-matic/
- Write a full blown add-in

I would use an EA-Matic script (but I guess I'm a bit biased)

Geert

amacara1

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Automatically change 'Status' to "proposed' on change
« Reply #2 on: January 18, 2023, 08:02:06 pm »
Thank you Geert, I understand.
So there seems to be no "out-of-the-box" solution from EA (I thought it would be, as I see this as sort of element life-time managing part)

philchudley

  • EA User
  • **
  • Posts: 709
  • Karma: +19/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Re: Automatically change 'Status' to "proposed' on change
« Reply #3 on: January 18, 2023, 08:17:45 pm »
That's correct there is no "out-of-the-box" solution.

To supplement what Geert as an alternative to an add-in which requires an installer you could have a look at Model Add-ins.

I have successfully used these to respond to EA_OnContextItemModified to monitor / update element properties.

Phil
follow me on Twitter

@SparxEAGuru

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12349
  • Karma: +490/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatically change 'Status' to "proposed' on change
« Reply #4 on: January 18, 2023, 08:37:04 pm »
That's correct there is no "out-of-the-box" solution.

To supplement what Geert as an alternative to an add-in which requires an installer you could have a look at Model Add-ins.

I have successfully used these to respond to EA_OnContextItemModified to monitor / update element properties.

Phil
Hi Phil,

Model-addins was actually my first suggestion :)

Geert