How to use the External URL of a Form ?

Good afternoon, I just wanna know how to use the External URL of a Form ? It could be another form developed using another technologie like Angular2+ for example or what is exactly used for ?

Hi Fatma,

 

External URL will redirect the portal to this url with the parameter "processInstanceId".

If what you want is to develop a page in any HTML5 framework (such as Angular2+) you can create a custompage, which is what UIDesigner generates as output.

https://documentation.bonitasoft.com/bonita/7.10/resource-management

 

You can create pages and forms but to keep it simple at the begining lets create a page, to do that:

Create a folder in your filesystem with following :

A file page.properties with this content

name=custompage_mycustompage
displayName= Angular2 Custom Page
description=Example of custom page including angular2+
resources=[] 
contentType=page

A folder resources in which you add an angular page (you can test with a HelloWorld ) but name it index.html and as many dependencies as required

Once done, zip it and deploy it in the portal using administrator profile, on resources menu.

Your custom page will be ready to be used in a living app.

 

To create a custom page of type form, change contentType=form on page.properties then you will need to map your form once deployed to the process. 


--

 

what do you mean by custompage? My main purpose is the ability to execute a task using a form not developed using UI designer , so I thought maybe I can use External URL to do that ?  do you have any suggestion to do that ?

Fatma,
You have 2 options:

  • You have an external web application that handles forms and is called by portal to server forms
  • You build a SinglePageApplication with any HTML5 framework and you deploy it as a resource/custompage

for the first option , can you give more details about the communication between the portal and the web application ?