Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] problem at launching ATL
[ATL] problem at launching ATL [message #2867] Wed, 27 December 2006 04:09 Go to next message
Eclipse UserFriend
Hi ,
(1) i am performing M2M transformation(bpmn to bpel).
my sample MetaModel for bpmn is following.

filename: bpmd.ecore
----------------------
BusinessProcessDiagram
Pools :Pool
Name : EString

Pool
Process :Process
Name :EString
Process
Name : EString
GraphicalElements : EObject
Task
taskType : TaskType

whers TaskType is XSI type Data


(2) and my model input file is following.
bpmnModel.ecore
----------------
<?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:bpdm="http:///bpdm.ecore">
<bpdm:BusinessProcessDiagram xmi:id="_tLfiYJVvEdusYsgvXrrVmQ">
<Pools xmi:id="_45T0YJVvEdusYsgvXrrVmQ" Id="_uqHcgJVvEdusYsgvXrrVmQ"
Documenation="New Document" Name="Pool">
<Process xmi:id="_45T0YZVvEdusYsgvXrrVmQ" Name="Process">
<GraphicalElements xsi:type="bpdm:Task"
xmi:id="_45T0Y5VvEdusYsgvXrrVmQ" Id="_wQouYJVvEdusYsgvXrrVmQ"
Pool="_45T0YJVvEdusYsgvXrrVmQ" Name="task1"/>
</Process>
<lanes xmi:id="_45T0ZpVvEdusYsgvXrrVmQ" Id="_uqHcgZVvEdusYsgvXrrVmQ"
Name="Lane" parentpool="_45T0YJVvEdusYsgvXrrVmQ"/>
</Pools>
</bpdm:BusinessProcessDiagram>



(3) my ATL file is very simple it is only print name of
BusinessProcessDiagram .
module bpmnSeq2bpelSeq; -- Module Template
create OUT : BPEL from IN : bpdm;

rule bpmnSeq2bpelSeq {
from input : bpdm!BusinessProcessDiagram
do {
input.Name -> println();

}
}
but when i run this program it generated following error .
An internal error occurred during: "Launching".

java.lang.NullPointerException
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:226)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:154)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:136)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:117)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:95)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:754)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:944)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

when i removed <GraphicalElements> entry from bpmnModel.ecore so it
works fine. but i don't why it is not wworking with <GraphicalElements>
tag.

pls help me.
thanks in advance.
Re: [ATL] problem at launching ATL [message #4435 is a reply to message #2867] Fri, 29 December 2006 03:35 Go to previous message
Eclipse UserFriend
Hi,

I suppose the problem is not in launching the transformation
programmatically, but in loading the model, which led you to refocus
your question in another post. Right?

Let us first solve the loading issue. We can come back to the launching
part later if there is also a problem there


Regards,

Frédéric Jouault

brajesh wrote:
> Hi , (1) i am performing M2M transformation(bpmn to bpel).
> my sample MetaModel for bpmn is following.
>
> filename: bpmd.ecore
> ----------------------
> BusinessProcessDiagram
> Pools :Pool
> Name : EString
> Pool
> Process :Process
> Name :EString Process Name : EString
> GraphicalElements : EObject
> Task
> taskType : TaskType
>
> whers TaskType is XSI type Data
>
>
> (2) and my model input file is following.
> bpmnModel.ecore
> ----------------
> <?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:bpdm="http:///bpdm.ecore">
> <bpdm:BusinessProcessDiagram xmi:id="_tLfiYJVvEdusYsgvXrrVmQ">
> <Pools xmi:id="_45T0YJVvEdusYsgvXrrVmQ" Id="_uqHcgJVvEdusYsgvXrrVmQ"
> Documenation="New Document" Name="Pool">
> <Process xmi:id="_45T0YZVvEdusYsgvXrrVmQ" Name="Process">
> <GraphicalElements xsi:type="bpdm:Task"
> xmi:id="_45T0Y5VvEdusYsgvXrrVmQ" Id="_wQouYJVvEdusYsgvXrrVmQ"
> Pool="_45T0YJVvEdusYsgvXrrVmQ" Name="task1"/>
> </Process>
> <lanes xmi:id="_45T0ZpVvEdusYsgvXrrVmQ"
> Id="_uqHcgZVvEdusYsgvXrrVmQ" Name="Lane"
> parentpool="_45T0YJVvEdusYsgvXrrVmQ"/>
> </Pools>
> </bpdm:BusinessProcessDiagram>
>
>
>
> (3) my ATL file is very simple it is only print name of
> BusinessProcessDiagram .
> module bpmnSeq2bpelSeq; -- Module Template
> create OUT : BPEL from IN : bpdm;
>
> rule bpmnSeq2bpelSeq {
> from input : bpdm!BusinessProcessDiagram
> do {
> input.Name -> println();
> }
> }
> but when i run this program it generated following error .
> An internal error occurred during: "Launching".
>
> java.lang.NullPointerException
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:226)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:154)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:136)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:117)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:95)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:754)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:944)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
> when i removed <GraphicalElements> entry from bpmnModel.ecore so it
> works fine. but i don't why it is not wworking with <GraphicalElements>
> tag.
>
> pls help me.
> thanks in advance.
>
>
Previous Topic:model doesn
Next Topic:Getting value from a reference
Goto Forum:
  


Current Time: Sun May 04 03:43:00 EDT 2025

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

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

Back to the top