Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] cann't find reference of entity
[ATL] cann't find reference of entity [message #5148] Thu, 04 January 2007 04:34 Go to next message
Eclipse UserFriend
Hi ,
my input model cannot find reference of entity.
here i am posting small meta model in km3 format.
============================================================ ====================
class BusinessProcessDiagram
{
attribute Name:String;
reference pools[*] : Pool;
}

class Pool extends ObjectID
{
attribute Name:String;
attribute Document:String;
reference Process : Process;
}

class Process {
reference GraphicalElements:Task;
attribute Name:String;
}

class Task extends ObjectID
{
attribute Name:String;
reference Pool: Pool;
}

class ObjectID
{
attribute Id:String;
}

============================================================ ===================
my sample input model file:
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bp="bpdm">
<bp:BusinessProcessDiagram xmi:id="_tLfiYJVvEdusYsgvXrrVmQ" Name="BPD1">
<Pools xmi:id="_45T0YJVvEdusYsgvXrrVmQ" Id="_uqHcgJVvEdusYsgvXrrVmQ"
Documenation="New Document" Name="Pool1">
<Process xmi:id="_WFoRwZcqEdusf_1zRX5pHw" Name="Process1">
<GraphicalElements xsi:type="bp:Task"
xmi:id="_eK1eUJcqEdusf_1zRX5pHw" Id="_aNhUMJcqEdusf_1zRX5pHw"
Pool="//@Pools.0" Name="Task1"/> </Process>
</Pools>
</bp:BusinessProcessDiagram>
</xmi:XMI>


============================================================ ==================
my rule for this input model:


helper context bpdm!BusinessProcessDiagram def : getGraphicalElement :
Sequence(bpdm!Object) =
self.Pools->collect(e|e)->asSequence()->collect(process|process.Process)- >asSequence()
->collect->(g|g.GraphicalElement)-> asSequence(); rule
bpmn2bpel {
from input : bpdm!BusinessProcessDiagram
do {
for(p in input.GraphicalElement)
{
p.Name->println();
}

}
}
i am just trying to get all GraphicalElement of type bpdm!Task but it
didn't display anything
but when i removed Pool entry from GraphicalElements then it print
GraphicalElements . can you tell me how to reference Pool from
GraphicalElements .
one more think why
bpdm!Task.oclType() given Undefined

thanks
Regards
Brajesh K
Re: [ATL] pls. reply i am stuck [message #5343 is a reply to message #5148] Mon, 08 January 2007 02:16 Go to previous message
Eclipse UserFriend
hi
Previous Topic:Problems when copying properties from a class
Next Topic:ATL 2006 install guide
Goto Forum:
  


Current Time: Sat May 10 15:58:15 EDT 2025

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

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

Back to the top