Bonitasoft-Community / Bunny-Spawner-Node-JS-and-Bonita-BPM-example-with-kitties-and-bunnies

This is an example of how to use the Bonita BPM web REST API with Node.js. To make it fun and adorable for your girl friend, we used some good old 8bit like sprites with cats and rabbits ;-) lol
GNU General Public License v2.0
0 stars 1 forks source link

Invalid .bar file structure #1

Open petergruenbeck opened 9 years ago

petergruenbeck commented 9 years ago

I was really looking forward to trying this out using Community edition 6.5.1

The BAR file bunny--1.0.bar doesn't have the correct structure. The .proc file is missing. You might have tried to import a 6.x .bar although only 5.9+ is supported. org.bonitasoft.studio.importer.processors.ImportFileOperation.run(ImportFileOperation.java:76) org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

rbioteau commented 9 years ago

You cannot import a bar file in the studio (it's the runtime archive of a process) The Bar importer present in the importer dialog is for 5.x legacy support. Here there is a 6.x bar. If you want to have a look to the process, you may ask a .bos archive to the author. Regards

Setrag commented 9 years ago

Hi Peter, I do not have the .bos of this process but it's a simple infinite loop on a task which execute the connector describe in the README file (section: Bonita BPM TO Node.js server) . there's also a 1 second timer between each execution to avoid "cuteness overload" (Too much instantiation of bunnies). if needed i can recreate the process, test it and add it in the repository. I hope this will help you.

petergruenbeck commented 9 years ago

Ok, I got it - thanks. I just missed the part about the archive being a runtime. Need to read the instructions I guess. -- Peter

On 4/25/2015 8:28 AM, Setrag wrote:

Hi Peter, I do not have the .bos of this process but it's a simple infinite loop on a task which execute the connector describe in the README file (section: Bonita BPM TO Node.js server) . there's also a 1 second timer between each execution to avoid "cuteness overload" (Too much instantiation of bunnies). if needed i can recreate the process, test it and add it in the repository. I hope this will help you.

— Reply to this email directly or view it on GitHub https://github.com/Bonitasoft-Community/Bunny-Spawner-Node-JS-and-Bonita-BPM-example-with-kitties-and-bunnies/issues/1#issuecomment-96223102.

solognt commented 9 years ago

Does this example still work with Community edition 7.0.2? I'm trying to install the bunny--1.0.bar as a process using the web portal but it gives me a:

"org.bonitasoft.engine.bpm.bar.InvalidBusinessArchiveFormatException: Invalid format, can't read the BAR file".

ttoine commented 9 years ago

Hello, you will not be able to import a v6 bar file in v7. Instead, you will have to import the .bos file in a v7 Studio et build it again.

solognt commented 9 years ago

Hmm too bad there is no .bos file in this project :(