> 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/orbeon-integration/orbeon-persistence-layer-for-gemstone-s/service-http-methods/lock-and-unlock.md).

# LOCK & UNLOCK

**Total: 2 methods**

```
leaseFormInstance: formName app: app withId: id
	"This method is called by Orbeon when:
		* A user click 'Duplicate' in a Form Instance in the Form Runner
		* A user click 'Lease' or 'Reliquish Lease' in a Form Instance in the Form Runner"
	| apiOperation timeoutValue |
	<lock>
	<path: '/crud/{2}/{1}/data/{3}/data.xml'>
```

```
relinquishLeaseFormInstance: formName app: app withId: id
	"This method is called by Orbeon when:
		* A user click 'Duplicate' in a Form Instance in the Form Runner
		* A user click 'Lease' or 'Reliquish Lease' in a Form Instance in the Form Runner"
	| apiOperation timeoutValue |
	<unlock>
	<path: '/crud/{2}/{1}/data/{3}/data.xml'>
```
