Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Run Triquetrum engine on Apache Karaf #309

Open
erwindl0 opened this issue Oct 19, 2018 · 7 comments
Open

Run Triquetrum engine on Apache Karaf #309

erwindl0 opened this issue Oct 19, 2018 · 7 comments

Comments

@erwindl0
Copy link
Contributor

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
Copy link
Contributor Author

erwindl0 commented Oct 19, 2018

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
Copy link

pkeller commented Oct 19, 2018

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

@erwindl0
Copy link
Contributor Author

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

@pkeller
Copy link

pkeller commented Oct 19, 2018

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

erwindl0 commented Oct 19, 2018 via email

erwindl0 added a commit that referenced this issue Jan 14, 2019
Signed-off-by: Erwin De Ley <erwindl0@gmail.com>
erwindl0 added a commit that referenced this issue Jan 14, 2019
that can then be wrapped in a Karaf command.

Signed-off-by: Erwin De Ley <erwindl0@gmail.com>
erwindl0 added a commit that referenced this issue Jan 14, 2019
Signed-off-by: Erwin De Ley <erwindl0@gmail.com>
erwindl0 added a commit that referenced this issue Jan 14, 2019
that can then be wrapped in a Karaf command.

Signed-off-by: Erwin De Ley <erwindl0@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants