Skip to main content

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?

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.


Hi @Saranga Amaraweera ,

 

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

Any advice please? 


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?