Btw, I'm pushing for webjars because I would love to see a bpmn integration
extension published on
extensions.xwiki.org
Thanks,
Marius
On Feb 15, 2015 3:14 PM, "Marius Dumitru Florea" <
mariusdumitru.florea(a)xwiki.com> wrote:
On Feb 15, 2015 1:30 PM, "carlez" <senzacquacarlo(a)gmail.com> wrote:
Thanks for the reply Marius!
I find webjars project of bpmn-js lib
(
https://github.com/bpmn-io/webjar-bpmn-js) and I read the documentation
about xwiki and webjars but i don't understand what I have to do!
Do I have to write a component? Can you explain
me how to proceed to use
this webjar? Thanks for your patience!
No, you don't have to ceate any component. For developmemnt you start by
downloading all the webjars you need and copy them to WEB-INF/lib (like you
would do with any jar) and restart the server. Then you obtain the URL to
the resources from the webjars using the webjar script service as indicated
on the documentation page. You configure Require.js with these URLs and it
will take care of loading them (as in the examples I linked).
So far this is not different from puting the JavaScript files in the
resources
folder and using $xwiki.getSkinFile() with Require.js . The
advantage of using webjars is the fact that after you develop the bpmn
integration you can create an extension that declares its webjar
dependencies and the Extension Manager will be able to install them
automatically. That is because EM knows how to install jars (so webjars
too) but it cannot install JavaScript files in the resources folder.
Hope this helps,
Marius
>
>
>
> --
> View this message in context:
http://xwiki.475771.n2.nabble.com/Integrate-bpmn-js-into-xWiki-tp7593969p75…
> Sent from the XWiki- Users mailing list archive
at
Nabble.com.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users