repeated information after transformation

1 view
Skip to first unread message

gaurav v bagga

unread,
Jan 29, 2007, 5:58:30 AM1/29/07
to Tefkat
hi,

with these rules


TRANSFORMATION bpmn2bpel : bpmn -> bpel

IMPORT platform:/resource/bpmn2bpel/models/bpdm.ecore
IMPORT platform:/resource/bpmn2bpel/models/bpel.ecore

// Produces a Table and Key for each persistent UMLClass.
//
RULE Bpmn2Bpel(b,p)
FORALL BusinessProcessDiagram b
MAKE Process1 p
SET p.name = b.Pools.Name


;

RULE do1(b,p,s)
EXTENDS Bpmn2Bpel(b,p)
MAKE Sequence s
SET p.activities=s
;

RULE do2(b,p,po,s,i)
EXTENDS do1(b,p,s)
FORALL Task po
MAKE Invoke i
SET s.activities=i,
i.operation=po.Name

;


i get

<?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:bpel="http://bpel">
<bpel:Invoke xmi:id="30811812" operation="Task2"/>
<bpel:Sequence xmi:id="8582034">
<activities xsi:type="bpel:Invoke" xmi:id="21303071"
operation="Task1"/>
<activities xsi:type="bpel:Invoke" xmi:id="30811812"
operation="Task2"/>
</bpel:Sequence>
<bpel:Process1 xmi:id="14938154" name="Pool">
<activities xsi:type="bpel:Sequence" xmi:id="8582034">
<activities xsi:type="bpel:Invoke" xmi:id="21303071"
operation="Task1"/>
<activities xsi:type="bpel:Invoke" xmi:id="30811812"
operation="Task2"/>
</activities>
</bpel:Process1>
<bpel:Invoke xmi:id="21303071" operation="Task1"/>
</xmi:XMI>

sequence is getting repeated twice
how to avoid that....

regards

gaurav

michael lawley

unread,
Jan 29, 2007, 6:51:27 AM1/29/07
to Tef...@googlegroups.com
Try the following:

1. Remove the Tefkat nature from the project
2. Select Run->Run...
3. Double-click Tefkat Engine
4. Click Browse... for the Tefkat Configuration and select
Workspace->bpel2bpmn->tefkat.xml
5. Click Run

You can now just click the Run arrow any time you want to execute the
transformation.

(Sadly, there are currently two code-paths that can generate the XMI
and only one of them has had the last bugfix applied to avoid the
duplicate elements - this will be fixed next release).

michael

gaurav v bagga

unread,
Jan 29, 2007, 9:19:02 AM1/29/07
to Tefkat
hi michael,

this means i am writing the rules the right way?

can continue the way i have written the rules.

regards
gaurav

michael lawley

unread,
Jan 29, 2007, 4:51:48 PM1/29/07
to Tef...@googlegroups.com
yes, no problem with the way the rules are written
Reply all
Reply to author
Forward
0 new messages