Solved

Business Rule - Using person making change as a parameter

  • 4 March 2020
  • 7 replies
  • 263 views

Userlevel 5
Badge +12

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?

icon

Best answer by jbernardo 23 April 2020, 15:12

View original

7 replies

Userlevel 1
Badge +5

Dear jbernardo, 

 

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

 

Userlevel 5
Badge +12

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

Userlevel 1
Badge +5

which version of FSM are you using?

Userlevel 5
Badge +12

5.7

Userlevel 1
Badge +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.

Userlevel 5
Badge +12

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

Badge +2

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