Failed to save model to platform:/resource [message #1000724] |
Tue, 15 January 2013 10:28  |
Eclipse User |
|
|
|
Hello, I m working to a model2model transformation with qvto.
I m just a beginner with this language, and i m still trying to better understand how it works.
I m trying to map a BPMN model in a BPEL model, but while i run my qvto file i get this error.
I'll post the code and the error, can you please tell what does this means, the code is very simple so i cant get where the problem could be.
Error:
org.eclipse.m2m.internal.qvt.oml.emf.util.EmfException: Failed to save model to platform:/resource/Bpmn2Bpel/transforms/output2.bpel
Code: (i cant use http://)
modeltype BPMN uses "httpworldwideweb.omg.org/spec/BPMN/20100524/MODEL-XMI";
modeltype BPEL uses "httpworldwidewebdocs.oasis-open.org/wsbpel/2.0/process/executable";
transformation Bpmn2Bpel(in ModelInput:BPMN,out OutputProcess:BPEL);
main() {
log("A\n");
ModelInput.objectsOfType(BPMN::Process)->map Proc2Proc();
log("D\n");
}
mapping BPMN::Process::Proc2Proc():BPEL::Process{
log("start\n");
name:=self.name;
self.flowElements-> map Elements2Activity();
log("process name "+self.name);
log("fine\n");
}
mapping BPMN::FlowElement::Elements2Activity():BPEL::Activity{ //case switch per ogni tipo
//di elemento
log("in E2A");
log(self.name);
log("out E2A");
}
As you can see, i m just trying to display the name of the objects.
Thanks in advance for your help. Tizio
|
|
|
Re: Failed to save model to platform:/resource [message #1000848 is a reply to message #1000724] |
Tue, 15 January 2013 14:35   |
Eclipse User |
|
|
|
Hi
It looks like your problem is in the output specification of your launch
configuration.
Make sure you try the UNL2RDBMS example project and then compare your
launch with the example.
Regards
Ed Willink
On 15/01/2013 14:32, Tizio Caio wrote:
> Hello, I m working to a model2model transformation with qvto.
> I m just a beginner with this language, and i m still trying to better
> understand how it works.
> I m trying to map a BPMN model in a BPEL model, but while i run my
> qvto file i get this error.
> I'll post the code and the error, can you please tell what does this
> means, the code is very simple so i cant get where the problem could be.
>
> Error:
> org.eclipse.m2m.internal.qvt.oml.emf.util.EmfException: Failed to save
> model to platform:/resource/Bpmn2Bpel/transforms/output2.bpel
> Code: (i cant use http://)
>
> modeltype BPMN uses
> "httpworldwideweb.omg.org/spec/BPMN/20100524/MODEL-XMI";
> modeltype BPEL uses
> "httpworldwidewebdocs.oasis-open.org/wsbpel/2.0/process/executable";
>
> transformation Bpmn2Bpel(in ModelInput:BPMN,out OutputProcess:BPEL);
>
> main() {
> log("A\n");
>
> ModelInput.objectsOfType(BPMN::Process)->map Proc2Proc();
>
> log("D\n");
>
> }
>
> mapping BPMN::Process::Proc2Proc():BPEL::Process{
> log("start\n");
> name:=self.name;
> self.flowElements-> map Elements2Activity();
> log("process name "+self.name);
> log("fine\n");
> }
> mapping BPMN::FlowElement::Elements2Activity():BPEL::Activity{ //case
> switch per ogni tipo
>
> //di elemento log("in E2A");
> log(self.name);
> log("out E2A");
> }
>
> As you can see, i m just trying to display the name of the objects.
> Thanks in advance for your help. Tizio
|
|
|
|
Re: Failed to save model to platform:/resource [message #1000893 is a reply to message #1000865] |
Tue, 15 January 2013 16:24   |
Eclipse User |
|
|
|
Hi
You probably have a Resource registered for *.model, and nothing for
*.bpel. Worse, you may have a text file registered for *.bpel.
Regards
Ed Willink
On 15/01/2013 15:09, Tizio Caio wrote:
> I fixed the problem. If i change the output model extension from
> output.bpel to output.model it works just fine. Can you please explain
> why?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04223 seconds