Filter on Identity Lifecycle State Changed Trigger

@iamnithesh, Give this a shot, I recently worked on something similar.

$.[?( (@.newLifecycleState == ‘terminated’) && (@.oldLifecycleState == ‘prehire’ || @.oldLifecycleState == ‘active’) )]