eclipse-archived / triquetrum

Triquetrum project
Other
13 stars 14 forks source link

Run Triquetrum engine on Apache Karaf #309

Open erwindl0 opened 5 years ago

erwindl0 commented 5 years ago

Whereas the graphical editor is meant to be used in an Eclipse RCP application, it should be possible to execute workflows as much as possible on lightweight OSGi runtimes. (of course this assumes the workflows don't contain actors that need RCP)

Apache Karaf is an interesting option here, with Equinox underneath.

Ideally we would also try things on Karaf on Felix, but we're currently not free of Eclipse-Buddy tricks that won't work there.

erwindl0 commented 5 years ago

First trials ongoing.

Ptolemy II bundles are also impacted a bit, some extra package imports must be added on javax packages.

So we need an update of the Ptolemy II OSGi bundles in our dependencies.

afbeelding

afbeelding

afbeelding

pkeller commented 5 years ago

I had an item on my personal to-do list to ask you about exactly this possibility some time or other!

erwindl0 commented 5 years ago

That's good to know! If you have any specific requirements / inspiration in this context : let me know!

pkeller commented 5 years ago

What I am interested in, is the possibility of the most lightweight deployment possible of the workflow engine, with pre-canned workflows for (headless) execution. The users of such a deployment won't need to design or edit the workflows, or interact directly with the workflow model. (A few PNG images of the workflow taken from the editor by me for inclusion in the documentation would be all that they would need to see.)

cxbrooks commented 5 years ago

Apache Karaf looks interesting.

For your reference, Ptolemy II has the ability to export an image of a pre-canned workflow that can be put up on a web page and that is mouse sensitive so that it is possible to click on the image of an actor and see the values of the parameter and the values of a plot.

A partially working example can be found at https://ptolemy.berkeley.edu/ptolemyII/ptII10.0/ptII10.0.1/ptolemy/domains/sdf/demo/Spectrum/Spectrum/

The parameter view is not working, I can take a look, but it is possible to navigate the model and look at the plot.

There are notes at https://wiki.eecs.berkeley.edu/ptexternal/Main/HTMLExport

I don't believe that the export facility is included in the OSGi bundles, but it would not be that hard. The starting point is ptolemy.vergil.basic.export.ExportModel

I'd be happy to help with this, I'm familiar with the code and it would not be much effort on my part.

The advantage of using starting with this code is that it handles a bunch of the things that would need to be handled like hierarchy.

cxbrooks commented 5 years ago

I fixed the problem with https://ptolemy.berkeley.edu/ptolemyII/ptII10.0/ptII10.0.1/ptolemy/domains/sdf/demo/Spectrum/Spectrum/

The issue was that when we moved the website, we did not create a symbolic link for javascript/ to js/

For reference, here's a screen shot:

screen shot 2018-10-19 at 10 46 51 am
erwindl0 commented 5 years ago

This is a great idea, combining predefined workflows with online documentation on a minimal runtime.

Perfect use case to focus on.