JSON REST CONNECTOR

Rest-post connector - upload file

Hello,

in my process i have instantiation form contains a multiple file upload fields,

in the contract i have multiple input of type FILE

the process has business variable named "files" of type java.util.List with default value the input contract previous

in the next service task (parallel-multi-instantiation) in the connector-in, i have connector of type REST-POST that call an endpoint that accept a formData parameter type to upload file.

How to consume a webservice Rest on BonitaSoft 7.4

Hi people!

I'm trying to consume a webservice that I'd produces with an object like:{"tipo":null,"servidor":null,"cname":null,"nome":"example.com","ip":"x.x.x.x","ip_servidor":null}

I've added the connector Rest and I'm configuring it. I can already do the GET and get the string. But how to extract the information and insert into the variables?

Thanks

Felipe Medeiros

[Résolu / Resolved] La sortie du connecteur REST n'est pas au format JSON

Bonjour à tous,

J'utilise Bonita BPM 7.0.0 en 64 bits, sur un Windows 7 pro 64 bits avec un JDK Oracle 1.7.0_75.

J'ai importé dans Bonita BPM le connecteur REST pour consommer une ressource au format JSON.
Pour récupérer le JSON, j'utilise la sortie du connecteur via une méthode Java du RESTResult: result.getEntity() qui renvoi un String. Cette chaîne de caractère est stockée dans une variable de processus responseBody de type String que j'ai déclaré.

Notifications