Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » openArchitectureWare » Type resolution issue
Type resolution issue [message #560349] Mon, 19 July 2010 18:08
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
I'm trying to set up a Xtend file to handle some model reading operations, and I am getting an odd set of errors. Here's the code in question:

List[bpmn::NamedBpmnObject] dereferenceElement(bpmn::BpmnDiagram container, String reference):
if (reference.compareTo('') == 0) then
{container}
else
let splitString = reference.split('::') :
container.pools.select(pool|pool.name.matches (splitString.first())).findElementInPool(splitString.remove( splitString.first()).toList());

List[bpmn::NamedBpmnObject] findElementInPool(bpmn::Pool container, List[String] names):
if(names.size == 1) then
container.select(comp|comp.name.matches (name))
else
container.typeSelect(bpmn::Vertex).select(comp|comp.name.mat ches(names.first())).findElementInGraph(names.remove(names.f irst()).toList());

List[bpmn::NamedBpmnObject] findElementInGraph(bpmn::Vertex container, List[String] names):
if(names.size == 1) then
container.select(comp|comp.name.matches (name))
else
container.typeSelect(bpmn::Vertex).select(comp|comp.name.mat ches(names.first())).findElementInGraph(names.remove(names.f irst()).toList());

It was essentially copied and modified from AMPLE's VML4Arch project, in case anyone finds it familiar.

Anyway, the errors I get are that the "container" variable in both findElementIn extensions gives the error:

"Collection type expected! was : bpmn::Vertex"

Also, the "pool.name.matches (splitstring.first())" call gives the error:

"Couldn't find operation 'matches (String)' for type 'type::String'"

I'm using Eclipse 3.5, OAW 4.3.1, and if it matters, Epsilon 0.8.9

Thanks in Advance.
Previous Topic:Type resolution issue
Next Topic:oAW without Eclipse
Goto Forum:
  


Current Time: Sat Apr 20 02:40:38 GMT 2024

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

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

Back to the top