MA

 

Hi . I want to create  a custom attribute that depends on other attribute value.

For exapme object Person has attributes

salay

after_tax

 

if I enter salary 1000 , attribute after_tax should be calculated automaticly

for example 1000*some_tax_coeficient.

by Amol Patil
Posted on Fri, 02/03/2012 - 16:00

Hi Misha,

You can take help of Macros. Create a macro which runs on Attribute change event, which calculates the after_tax and saves in the attribute.

Thanks,

Amol Patil

0
by Misha Akopov Author
Posted on Fri, 02/03/2012 - 16:29

Hi Mr. Amol Patil

 

Thanks for replay, I hate macros because they slow down modelling process. The macro will be called every time designers change attribute value of all objects. And they are crazy about macro little icon appearing and waiting time (1 sec ) :))))

 

Maybe there is another solution ?

0
by Amol Patil
Posted on Fri, 02/03/2012 - 17:35

Hi Misha,

Yes I agree, calling a macro on Attribute change makes the process slow. Then you can do one thing, schedule a report, which does a search operation in database to collect all Person objects and calculates their after_tax value if the pre-existing value is not correct. Schedule this script on hourly basis, the script will run in background at server side to update the values. This might help you.

Thanks,

Amol Patil

0
by Sam Nguyen
Posted on Sun, 02/05/2012 - 11:20

Hi Misha,

Re your comment below:

"...The macro will be called every time designers change attribute value of all objects..."

This will not happen when you select the save model event as the trigger, which occurs only once when the model gets saved.

Regards,

Sam

0
by Misha Akopov Author
Posted on Mon, 02/06/2012 - 10:42

Mr. Amol Patil

 

 That's much better . but can you tell me how can I schedule a report ?

Mr. Sam Nguyen

Thanks for replay , I will try it, it sounds much better :)

 

 

0
by Jasbir Singh
Posted on Tue, 12/23/2014 - 15:18

Hi,

Can you please let me know too ,how can i schedule a report

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

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