#externalapi

Comment ajouter REST/Bearer dans le Header d'une ExternalAPI?

Bonjour,

Je voudrais afficher des ressources d'un service REST dans un écran fait avec ui designer qui est protégé par un bearer.

J'ai besoin de rajouter des éléments dans le header (une clé de bearer) de mon acces à une ressource REST / ExternalAPI.

Comment je peux la définir pour mon ExternalAPI?

Merci

Je suis en Bonita 7.11 mais je passerais bientot à la 2023.1 ( je ne sais pas si ca change)

Gestion d'erreur des Variables de type External API et affichage dans le formulaire aux utilisateurs

Bonjour,

Cette question est liée à l'absence de mécanisme de gestion d'erreur lors des appels d'API REST effectués au travers de variables de type "External API" dans les formulaires et pages.

De nombreux cas d'erreur peuvent se poser : erreur 500 interne au serveur, erreur 403 liée à un problème de permission, erreur 401 suite à une session expirée etc...
Quelle que soit la source du problème, il semble que rien n'est prévu pour permettre au développeur du formulaire d'afficher un feedback à l'utilisateur pour l'informer de l'anomalie.

Use API (Not own Bonita) in the Designer Form

Hello everyone,

I created an external Api Rest to use it in the form of Bonita's designer.
I know how to use Bonita's own Api, but my question is ...
In this case, how would the API that I created within Bonita (form) be used, this external API is to obtain read-only information.

Someone knows something about it?

Regards,

Victor

Call a business data (custom) query with multiple filter

Hey guys,
I created a table like in the "getting started tutorial": https://www.bonitasoft.com/resources/videos/getting-started-tutorial?des... and everything works fine.

But now I want to get my table filled not with items via one filter, but with two.
So the actual code looks like this and its working:
../API/bdm/businessData/com.company.model.ManuskriptEinsenden?q=findByUserAndStatus&p=0&c=10&f=userId={{session.user_id}}&f=status=abgelehnt

How to send a localdate parameter to custom query external API

Hi everyone,
I have a problem, I try to fill a dataTable with a "External API" using a custom query, but when I send the data I receive this error

` {"exception":"class org.bonitasoft.engine.exception.BonitaRuntimeException","message":"USERNAME=walter.bates| java.lang.IllegalArgumentException: unable to parse \\u0027\\u00222018-05-13T00:00:00.000Z\\u0022\\u0027 to type java.time.LocalDate"}`

the external api url is this

Has a process wait for external data before continuing

Hi, Hola & Bonjour,

We are using Bonita 7.4.X, subscription edition.

We are building out a large process. At a few points we want our process to wait until data in a SQL DB has been updated.

For example when the process arrives on the task the data in the target DB would return 'Status:Incomplete.' We would want our task to wait until that data has changed to 'Status:Complete.'

Javascript Error and Converting Id to Name in Custom Case Overview

Hi,

I have an error in my custom overview page. My error is java script cannot execute properly and my conversion of id to name using the API identity is not working.

The java script contains this one. $item is the value of my collection. It gets the value of the company in my bdm. Since this is a custom overview for me to get the value of bdm i created a container a put the value in collection.

How can i use external URL form for human task with bonita 7

Hello,

I want to use external form instead of UIDesigner form for human task. For my test i create a simple test with one human task and i write in the human task -> form -> URL : "www.google.com"

When i launch the process and come to this form i get an Error 500.

Do you know how i can use external form ? or where i can find documentation about it for bonita 7 ?

Thanks

activity/humanTask/task etc API REST only works if a Administratos profiled user is logged

Hello,

activity/humanTask/task etc API REST only works if a Administratos profiled user is logged. Is this behavior by design of a bug?

Context:
Bonita Community 7.1.0
H2 DB
Tomcat bundle

No other environment has been tested.

how to call external API

I want to call an external api in a ui designer variable, that returns JSON array, so that I could fill the dropdown widget with this array. Is this possible in Bonita or is it only possible to call Bonita API? Thanks in advance,
Regards,
Magdalina Civovic

Notifications