Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-dev] Logging and Java2StateMachine example (from TTC 2011)

Hi,

I added logging functionality for unit and rule applications (see LoggingApplicationMonitorImpl) in the interpreter plug-in.

I also added a version of the Java2StateMachine example from the TTC 2011 to the examples plug-in. It is completely based on dynamic EMF now, so you don't need JaMoPP anymore. The models are also directly editable with the sample reflective editor (no need to register any packages).

The Java2StateMachine examples works so far, but there is one small problem: One Transition object for "TimeoutException" is not generated. The generated output is automatically saved and compared with a reference model -- you can try it out yourself. I don't know yet what the problem is. Maybe the rule that is supposed to create the Transition object cannot be matched for some reason. Anyway, I think that is a good example to try out the new logging functionality (currently commented out in the example code). So it would be great if we can find the bug.

When the example is fixed, I plan to added it as a test case to our test suite (similarly for some of the other examples). By the way, I also added a diagram for the Java2StateMachine example, but its use is limited because currently ParameterMappings are not displayed in the graphical editor.

Cheers,
Christian




Back to the top