[great-users] Abort a transformation
Daniel Balasubramanian
daniel at isis.vanderbilt.edu
Tue Feb 22 10:07:12 CST 2011
Hi Achim,
If I understand correctly, what you're trying to do is exit the transformation based on some condition, such as a pattern match. Is this correct? If so, you could use Test/Case blocks. Insert a Test block, and put a Case block first that tests the condition for termination. If that Case is true, then don't have any output ports for that Case (use a "Cut" element, too). Otherwise, control will fall through to the next Case block in which you could just pass the input straight through to the next rule.
Hope this helps,
Daniel
-----Original Message-----
From: great-users-bounces at list.isis.vanderbilt.edu on behalf of Achim Gädke
Sent: Wed 2/16/2011 9:28 PM
To: great-users
Subject: [great-users] Abort a transformation
Hi there!
During the modeling phase I try to prevent ill designed models with OCLs in GME.
In the the model transformation I do (often similar) assumptions, which I would test with an assert statement in other programming languages.
Is there a concept comparable to assertions in GReAT?
For my project it would be sufficient to modify the exit code.
Cheers, Achim
_______________________________________________
great-users mailing list
great-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/great-users
More information about the great-users
mailing list