# Problem starting a process forom a UI-designer button

**URL:** <https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282>\
**Category:** Q&A\
**Created:** [9 March 2017 15:18 UTC](https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282 "2017-03-09T15:18:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![franco.canepa](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@franco.canepa](https://community.ofelia.com/u/franco.canepa)\
**Post date:** [9 March 2017 15:18 UTC](https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282/1 "2017-03-09T15:18:38Z")

</div>

Hello,  
I build a page with the UI-designer and I’m trying to set up a button to allow the user start a process from that page.  
I got the process definition using the REST api: …/API/bpm/process?p=0&c=1&f=name=MiPrueba (process name MiPrueba), this is the result:

[  
{  
“displayDescription”: “”,  
“deploymentDate”: “2017-03-09 11:51:14.483”,  
“displayName”: “MiPrueba”,  
“name”: “MiPrueba”,  
“description”: “”,  
“deployedBy”: “26”,  
“id”: “8134718264282568855”,  
“activationState”: “ENABLED”,  
“version”: “1.0”,  
“configurationState”: “RESOLVED”,  
“last\_update\_date”: “2017-03-09 11:51:25.923”,  
“actorinitiatorid”: “21”  
}  
]

After that I try to setup a link to this URL:

/bonita/portal/resource/process/MiPrueba/1.0/content/?id=8134718264282568855

But nothing happen. According to the Documentation, the portal URL to start a process is:  
Example:  
[http://localhost:8080/bonita/portal/resource/process/Task%20link%20via%20email/1.0/content/?id=34951576542454](http://localhost:8080/bonita/portal/resource/process/Task%20link%20via%20email/1.0/content/?id=34951576542454)

If I try **[http://localhost:8080//bonita/portal/resource/process/MiPrueba/1.0/content/?id=8134718264282568855](http://localhost:8080//bonita/portal/resource/process/MiPrueba/1.0/content/?id=8134718264282568855)** on a blanck page, I just get a blank page, no answer on display. When I check if there is any new task there is none.

I checked the logs and there is no line with errors or success, It’s like the url is just beign ignored.

I’m using bonita 7.4.2 or 7.4.3.

Can you help me understand what am I doing wrong here, I need to be able to start a process instance from a button or link on my ui-designer page.

Thanks a lot in advance

---

<div class="post-metadata">

**Author:** ![franco.canepa](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@franco.canepa](https://community.ofelia.com/u/franco.canepa)\
**Post date:** [9 March 2017 18:07 UTC](https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282/2 "2017-03-09T18:07:19Z")

</div>

I did more test, and I noticed that my process was configured without a Instantiation form (option No form). I switched to UI designer and left empty the field of the form. Now I cant start the process from the URL, but I have to get to a page warning me that the page has no Instantiation form and I have to press a green Start button.

How can I make this work without an Instantiation form?

---

<div class="post-metadata">

**Author:** ![Dibyajit.Roy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dibyajit.Roy](https://community.ofelia.com/u/Dibyajit.Roy)\
**Post date:** [14 March 2017 06:14 UTC](https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282/3 "2017-03-14T06:14:48Z")

</div>

Hi

In My Processes, I keep the Instantiation form as No form.  
I design my own custom forms and start processes using my Custom made forms.

The Below steps details the process:-

1. From the UI designer , I select the category Application Page. Its completely Blank. I need to add all the components that I want here. I also provide a Buttom ( Submit) to Start the Process.
2. We need the Following variables Declared in the Form  
a) context - /bonita/API/bpm/userTask/{{taskId}}/context  
b) taskId - URL paramater - id  
c) formInput and formOutput  
d) processDef - /bonita/API/bpm/process?c=1&p=0&f=name=YourProcessName here&f=activationState=ENABLED&o=version%20DESC - (Incase there is space in between , use the URL encoding to encode the name )  
e) getProcessURL(javascript) - var process = $data.processDef[0];  
return “/bonita/API/bpm/process/” + process.id + “/instantiation”;

Now in the Submit button action should be POST , urlToCall should be {{getProcessURL}} and data sent should be formOutput.

Once Design is complete. Install the Process. Go to resource,Add this page. Go to Application. Create a new Application and add the Page there.  
You should Be able to open the Application url to open the Page and then use Submit button to Instantiate the process.

Hope this Helps.

---

<div class="post-metadata">

**Author:** ![franco.canepa](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@franco.canepa](https://community.ofelia.com/u/franco.canepa)\
**Post date:** [14 March 2017 12:29 UTC](https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282/4 "2017-03-14T12:29:20Z")

</div>

Thanks a lot for your answer, I’m going to try it.

---

<div class="post-metadata">

**Author:** ![Dibyajit.Roy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dibyajit.Roy](https://community.ofelia.com/u/Dibyajit.Roy)\
**Post date:** [20 March 2017 10:23 UTC](https://community.ofelia.com/t/problem-starting-a-process-forom-a-ui-designer-button/8282/5 "2017-03-20T10:23:14Z")

</div>

Hope it worked for you.
