genereted code error [message #947662] |
Wed, 17 October 2012 09:45 |
dorraaaa Z Messages: 29 Registered: June 2012 |
Junior Member |
|
|
hi
I have this generated code
<UIML:StructureType>
<part class="G:TopContainer" id="SuiviSysteme" name="SuiviSysteme"/>
</UIML:StructureType>
<UIML:PartType class="G:Area" id='connection' name='connection'/>
<UIML:PartType class="G:Text" id='login' name='login'/>
<UIML:PartType class="G:Text" id='pwd' name='pwd'/>
But I want to have a generated code like this
<UIML:Structure>
<part class="G:TopContainer" id='SuiviSysteme' name='SuiviSysteme' >
<part class="G:Area" id='002' name='connection' >
<UIML:PartType class="G:Text" id='login' name='login'/>
<UIML:PartType class="G:Text" id='pwd' name='pwd'/>
</part>
</part>
</UIML:Structure>
How can i change to have the second structure
please help me to find the problem
my code is:
rule UIMLStructureFromTaskModel {
from
tskMdl : CTT!TaskModelType
to
structure : UIML!StructureType ,
part : UIML!PartType
do{
structure.part <- part ;
part.class <- 'G:TopContainer';
part.id <- tskMdl.nameTaskModelID;
part.name <- tskMdl.nameTaskModelID;
} }
rule UIMLStructureFromTask{
from
task : CTT!Task
to
partTask : UIML!PartType
do{
if (task.TypeIE='UIFieldInManual' ){
partTask.class<- 'G:Text';
partTask.id<-task.identifier;
partTask.name <-task.name;}
else{
partTask.class<- 'G:Area';
partTask.id <- task.identifier;
partTask.name <-task.name;}}}
[Updated on: Wed, 17 October 2012 09:51] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03176 seconds