Alex M, familiar from this forum, has a couple of pretty good articles
on Cool Solutions lately.

Take a read!!! He discusses current-op, how it relates to the current
operation. How the engine handles it. XPATH to manage it, and sample
ppolicies. All very interesting and clever.

Complicated stuff, but good info to learn.