Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Workflow Engine] Chain DSL for the end-user
[Workflow Engine] Chain DSL for the end-user [message #610199] Sat, 03 November 2007 14:57
Jonathan MUSSET is currently offline Jonathan MUSSETFriend
Messages: 43
Registered: July 2009
Member
Hi,
I'm Jonathan, the leader of the Acceleo Project.
We worked on several DSLs and built editors for them using EMF.
One of the DSLs is very usefull to launch tasks like "Generation",
"Transformation", and "Parsing".
As far as I can see workflow engine doesn't currently use EMF for
serialization.
We would like to add a model editor (generated by EMF) for the workflow
engine, like for Acceleo.
I saw that you have a XML configuration language :

<workflow>
<property name='genPath' value='/home/user/target'/>
<property name='model' value='/home/user/model.xmi'/>
<component class='an.handwriten.XmiReader'>
<model value='${model}'/>
</component>
<component class='oaw.xpand2.Generator'>
<outlet>
<path value='${genPath}'/>
</outlet>
</component>
</workflow>

So, it is quite simple to have an EMF model of this language.
Here is a small description of our chain metamodel :

It contains some declarations (resources) followed by the actions to run :

The resource part, also called "Repository", contains all of the
resources used by the actions :
- Model : The models to which the generator will be applied
- Folder : The directories in which the generation will take place
- Log : files that record errors
- Metamodel : The functional meta-models describing the entry models for
generation
- Generator : The generator to apply
- Transformer : The transformation to apply

The action parts, also called "ActionSet", contain all the tasks that
must be run :

- Generate : applies a generator to a model, and creates the target files.
- Transform : applies a transformer to severals models.
- Parse : makes a reverse engeneering of the selected folder, and
creates the specified model
- Convert Xmi : Converts an XMI 1.x file that has been exported by a non
EMF modeler into a XMI 2.0 file based on EMF. This conversion can handle
UML13 and UML14 meta-models defined for EMF with the
http://www.obeo.fr/acceleo/uml13 and http://www.obeo.fr/acceleo/uml14
URIs. This action generally precedes a generation action, which is
applied to the model that results from the conversion.
- Remove : Completely removes the selected files and directories.
- Call : Launch the chains with the given path (« Chain Path »),
replacing the declared parameters of the sub chain by the given
arguments. A double click on the new "Call" is possible to select the
chain to call.
- Custom Action : Launch a custom action on the selected resources. It's
an infinite extension point. You can add ant tasks...
- ...

As the operations parameters are typed, this DSL is far simpler for the
end-user and many more checked are possible (just using the
EMF-validation framework).

Are you interested in such a contribution ?
If not, Are there any plans for this kind of features ?

Regards,

Jonathan
Previous Topic:EMF model generation- performance problem?
Next Topic:[Workflow Engine] Chain DSL for the end-user
Goto Forum:
  


Current Time: Thu Apr 25 11:34:24 GMT 2024

Powered by FUDForum. Page generated in 0.03045 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top