Question

Capture user login

  • 29 May 2021
  • 3 replies
  • 144 views

Userlevel 1
Badge +2

Hi 

I need to capture user login to apply some rules. I have tried below conditions but it is not getting triggered when user login.

Process details:

Type is XML

Execution point is “After Commit Update”

Execution type is “All Rules All Value Match”

 

Why it is not getting triggered? is there any other way to capture it?


This topic has been closed for comments

3 replies

Userlevel 7
Badge +22

Hi @Sara ,

Since you are trying to capture the current user’s login, this would not work as just table input parameters therefore, you need to trigger the person within expression type input parameters. Tick on the “use expressions” filed in the rule inputs section.

Here you need to change your input parameter as expression type input parameters and you need to add your logic only in the expression field as below example.

USER_LOG_IN.LOGGED_ON = “Y”

 

 

The expression operand USER_LOG_IN refers to PERSON table and it can take any relevant field in the PERSON table. Hope this is clear for you. If you need a pre-transaction value in the expression you need to wrap this inside ORIGINAL(USER_LOG_IN.COLUMN_NAME). 

For further more information, please refer fsm business rules cheatsheet.

Userlevel 1
Badge +2

Hi @Saranga Amaraweera ,

 

I tried suggested solution, but it is not trigging the business rule.

Any advice please? 

Userlevel 7
Badge +22

Hi @Sara ,

Can you share the screenshots of your business rule and the xml that you’re trying to execute? Did you add a watch function to trigger the BR?