[ATL] cann't find reference of entity [message #5148] |
Thu, 04 January 2007 04:34  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds