Une image contenant texte, signe

Description générée automatiquement

Context Pattern Editor – Capture Token

 

Capture Token

Only applicable for Query patterns, the Capture field defines whether the token represented by the row is captured in the final pattern.

Syntactically, this means that the token is wrapped in parentheses.

By default, Rhapsody queries only return the elements matched by last token in the pattern. By wrapping tokens in parentheses, the elements matched by those tokens are returned instead (which may be used as a kind of ‘look ahead’) For example:

Package,Block,Operation

returns only Operations in Blocks

Package,(Block),Operation

returns only Blocks that have Operations

Package,(Block),(Operation)

returns Blocks that have Operations and those Operations

 

A screenshot of a computer

Description automatically generated