Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » How to check name attribute that contains two words
How to check name attribute that contains two words [message #1755759] Tue, 07 March 2017 15:55 Go to next message
elay 221Friend
Messages: 6
Registered: March 2017
Junior Member
Greeting

I'm going to write a rule to transform one source element into two target elements

for example:

Task have attribute "name" where it contains two words separated by white space

How do I write an operation to compare between these two words?

Re: How to check name attribute that contains two words [message #1755959 is a reply to message #1755759] Thu, 09 March 2017 15:10 Go to previous message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Hi,

You can use a split() on the name (e.g. Sequence(String) names= myTask.name.split(' ')).
After that you can do what you want to compare strings in the sequence.
Previous Topic:Some Question of ATL
Next Topic:Reporting errors during transformation
Goto Forum:
  


Current Time: Fri Jun 22 11:38:44 GMT 2018

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

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

Back to the top