unlockedByArtifactMatching

Unlock when any artifact matches the given predicate.

Example:

.withTool(processTool).unlockedByArtifactMatching(a -> a instanceof Document && ((Document) a).isValid())