> For the complete documentation index, see [llms.txt](https://bpmflow.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bpmflow.gitbook.io/project/engineering-models/4+1-architecture-models/logical-view/searching-field-values-in-bpm-processes.md).

# Searching Field values in Bpm Processes

Inside **aBpmProcessInstance** the Form is accessed directly but in a **aBpmProcessDefinition** a collection with **indexes** is used so the **field type** is added between square **brakets** \[].\
This last exception was implemented because a field can change it's **type** in a form BUT indexes are used so different types are allocated in different collections. If not it will generate **anImproperOperation** at **GemStone/S** level.

### Bpm Process Definition <a href="#bpm-process-definition" id="bpm-process-definition"></a>

`aBpmProcessDefinition getFieldsNamed: 'citizenAge[n]'in: 'new-form'withValue: 25.`

`aBpmProcessDefinition getFieldsNamed: 'citizenName[n]'in: 'new-form'withValue: 'John'.`

![](/files/-LHErAEzIjET45j_VAbz)

### Bpm Process Instance <a href="#bpm-process-instance" id="bpm-process-instance"></a>

In **BpmProcessInstance** each **BpmTaskInstance** is associated with **anOrbeonFormInstance**.

`aBpmProcessInstance getValuesOfProcessField:'citizenName'.`

`aBpmProcessInstance getValueOfProcessField: 'citizenName'.`

![](/files/-LHErH8OYd9hs8306Lak)
