TR

Hello,

We are struggling a bit with getting information about model attribute changes when running a macro.

Scenario: When a user changes a specific model attribute to a specific value, we want to trigger certain actions in the database.

We have created a macro which is triggered by "Model attribute changed" event, but it seems we can not detect through the macro API which of the model's attribute(s) have changed. We would expect the list of changed attributes in the event argument list, but the arguments list is empty.

If we use instead the "Model attribute is to be changed by modeling (vetoable)" event, the attribute type number is included in the arguments list - however this event is triggered before any changes are made to the attribute.

Does anyone know how to support the scenario at hand?

Thanks in advance.

 

by Edwin Verstraeten
Posted on Wed, 11/30/2011 - 08:48

Hi,

The only work around available is to create a second attribute (not maintainable) containing the same value as the actual attribute you want to check. When the macro is triggered, you can compare the values, and determine whether the attribute has changed. After performing the necessary actions, you can update the additional attribute to the value of the additional attribute.

Best regards,

Edwin

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • BH
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock