Skip to main content
Solved

Business Rule - Using person making change as a parameter


jbernardo
Hero (Partner)
Forum|alt.badge.img+13

I am working on a validation business rule that allows only specific people to change a request from CLOSED status to OPEN

I figured the best way to do this would be using the REQUEST_EVENT table and CREATED_BY column. However, the event is only created AFTER insert so this wouldn't work. Is there another way to set this rule by the user actively doing it? or are business rules limited to tables & columns?

Is this something i would need to do via XML?

Best answer by jbernardo

i ended up creating a relation def for PERSON_ROLE and did it that way

View original

Forum|alt.badge.img+5

Dear jbernardo, 

 

you can use e.g. USER_LOG_IN.PERSON_ID as an input Parameter in your Business Rule. 

 


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Hero (Partner)
  • March 17, 2020

Unfortunately that table doesn't exist in our version of FSM

Initially i did it by table Person_role and set the permissions based on role

it worked but in our live environment wasnt really working so i was trying to find an alternate way


Forum|alt.badge.img+5

which version of FSM are you using?


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Hero (Partner)
  • March 18, 2020

5.7


Forum|alt.badge.img+5

Maybe you can try to use the expression. There should be something similar that can be used. I am not 100 % sure about the syntax but maybe another colleague has an idea.


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Hero (Partner)
  • April 23, 2020

i ended up creating a relation def for PERSON_ROLE and did it that way


fgallegosnetser
Do Gooder (Customer)
Forum|alt.badge.img+2
Jacqueline.Lyra wrote:

Dear jbernardo, 

 

you can use e.g. USER_LOG_IN.PERSON_ID as an input Parameter in your Business Rule. 

 

This an excelent option to get it done.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings