Bonjour ,
J'utilise la version 2022.1.
J'aimerais pouvoir lancer mon processus via l'API BPM
Voici le contrat de mon pool via l'API
{ "inputs": [ { "inputs": [], "type": "TEXT", "description": null, "name": "clients", "multiple": false } ], "constraints": [] }
Le contenu the clients étant le json suivant pour mon test
{"clients" : [ { "id": "0010001", "firstname" : "Boris", "lastname" : "Johnson", "comment" : "UK ex Prime Minister" }, { "id": "0010002", "firstname" : "Emmanuel", "lastname" : "Macron", "comment" : "France Prime Minister" }, { "id": "0010003", "firstname" : "Joe", "lastname" : "Biden", "comment" : "USA president" }, { "id": "0010004", "firstname" : "Yoshihide", "lastname" : "Suga", "comment" : "apan Prime Minister (predecessor DEAD)" }, { "id": "0010005", "firstname" : "Mario", "lastname" : "Dragh", "comment" : "Italy ex Prime Minister" }]}
J'essaie donc d'instancier le processus via API/bpm/process/:processid/instantiation avec un POST , mais malheuresment j'obtiens un code hhtp 400 et le message d'erreur suivant dans le log BONITA, malgres que la syntaxe Json semble correct:
2022-09-05T12:28:23,419+0200 | ZRH30479n | INFO | [http-nio-8080-exec-2|91] o.r.C.BonitaRestletApplication - Error while validating expected inputs Explanations: [{id=0010001, firstname=Boris, lastname=Johnson, comment=UK ex Prime Minister}, {id=0010002, firstname=Emmanuel, lastname=Macron, comment=France Prime Minister}, {id=0010003, firstname=Joe, lastname=Biden, comment=USA president}, {id=0010004, firstname=Yoshihide, lastname=Suga, comment=apan Prime Minister (predecessor DEAD)}, {id=0010005, firstname=Mario, lastname=Dragh, comment=Italy ex Prime Minister}] cannot be assigned to TEXT
Merci de votre aide.
david