# How to get the process form URL by Engine API

**URL:** <https://community.ofelia.com/t/how-to-get-the-process-form-url-by-engine-api/8993>\
**Category:** Q&A\
**Created:** [7 March 2018 07:03 UTC](https://community.ofelia.com/t/how-to-get-the-process-form-url-by-engine-api/8993 "2018-03-07T07:03:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabiei286\_1360710](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rabiei286\_1360710](https://community.ofelia.com/u/rabiei286_1360710)\
**Post date:** [7 March 2018 07:03 UTC](https://community.ofelia.com/t/how-to-get-the-process-form-url-by-engine-api/8993/1 "2018-03-07T07:03:39Z")

</div>

Hi everyone

I have a sample process which has a instantiation form with an external URL, so I want to retrieve this URL from Engine API but I couldn’t find any solution to retrieve the URL, but I have know that in Rest API with can gain the URL by “/bonita/API/form/mapping” and passing the processDefinitionId and type but I need a way for Engine API.

Thanks for your replies.

---

<div class="post-metadata">

**Author:** ![rabiei286\_1360710](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rabiei286\_1360710](https://community.ofelia.com/u/rabiei286_1360710)\
**Post date:** [7 March 2018 08:29 UTC](https://community.ofelia.com/t/how-to-get-the-process-form-url-by-engine-api/8993/2 "2018-03-07T08:29:08Z")

</div>

Sorry, after about a morning of thinking and research I could find the way which I was Looking for whole morning

ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI(apiSession);  
ProcessDefinition processDefinition = processAPI.getProcessDefinition(deploymentInfo.getProcessId());  
SearchOptionsBuilder optionsBuilder=new SearchOptionsBuilder(0,100);  
optionsBuilder.filter(FormMappingSearchDescriptor.PROCESS\_DEFINITION\_ID,processDefinition.getId());  
optionsBuilder.filter(FormMappingSearchDescriptor.TYPE, FormMappingType.PROCESS\_START);  
SearchResult formMappingSearchResult=processAPI.searchFormMappings(optionsBuilder.done());  
for (FormMapping formMapping : formMappingSearchResult.getResult()) {  
System.out.println(formMapping.getURL());  
}
