Question

I've a security engineering model of business processes written in own DSL using xtext editor. For example, I've a security model for Activiti which has security controls e.g. securing transmission channel, encrypt message among processes, user access control etc. What I want to do is to write some implementation which will get that myfile.mydsl, parse it and automatically secure the environment (Activiti) i.e. configure server.xml of tomcat in tomcat for SSL, create keystore using keytool etc (Hence channel is secured).

It isn't a model to model transformation so ATL-eclipse might not be helpful. Will xpand-eclipse help because xpand does model to text transformation?

I was also thinking to generate XMI from xtext and parse it in java and do the implementation. Does xtext editor provide some other way to parse the DSL to be helpful in implementation?

If my post is ambiguous then I can explain more.

Thanks in anticipation.

best regards,

Was it helpful?

Solution

There is no need to create an intermediate XMI serialized form of your model. If that one is loaded into memory, the object graph is pretty much the same as the one that you get from your Xtext DSL anyway. I'd recommend to use Xtend to implement the code generator.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top