onAfterUpdate action order

Can I guarantee that onAfterUpdate object actions will occur in a certain order?

I have one onAfterUpdate action (a client extension) that processes some sensitive information, and then another action (an “update an object entry” action) that clears the sensitive information. (Imagine something like processing a credit card transaction, then replacing the CC number with “***”.) I want to make sure the first action can process the information before it’s cleared by the second.

1 Like

Hello @ablomenberg

I am throwing an idea by having condition in the object action like when we have updates in values for specific fields then execute action? That way I think you can make it a bit serialize

you can check oldValue with current value using expression builder

Ref: Expression Builder Validations Reference - Liferay Official Documentation - Liferay Learn