# 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'.`

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEq52I4j_x17_gIzdr%2F-LHErAEzIjET45j_VAbz%2Fbpm-process-definition.jpg?alt=media\&token=d5953461-9820-4ee8-b130-bde853b42db2)

### 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'.`

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEq52I4j_x17_gIzdr%2F-LHErH8OYd9hs8306Lak%2Fform-instance-struc.jpg?alt=media\&token=c5a24dcb-1325-4f26-a1d6-29e22ca513aa)
