[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [bpel-dev] Reading a BPEL file
|
- From: iyad alshabani <iyad.alshabani@xxxxxxxxx>
- Date: Sat, 10 Oct 2009 09:40:43 +0200
- Delivered-to: bpel-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=IhcKDnewqhaTQO+1M5eHv7sRtDdgsPoopD5KFnEyhds=; b=HCANixqLBHJ/4vOYgr8405sC3Og21sMTZw8L8FGHKNYmLyUTJbdXX96C3xSAC9LOl6 WpX0wGouvlsjwrDxwFSTbfYsTMJf9L2cUrv3xUo0Yv1TcRAkrytWmJEU2aTePko74K90 4xRQs1cGKfisJT9lzMRiFLHglMz2qoOiVpXe4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=iAriGlPvtbepdZy/fuI3oUM8wvmlrZdyppNGAfSXO5w2Ye8hR8mHuNFVKTiOOBcmOP HHjgSMEeUnrDRlFRDnxktY17PzYRrr/hRyJ+LnWzilWSQnYwz9Ng+3YJIojqndSpAn1W JVNnTRJpC41BUkO5K4XxDL+omNV4htgvfItts=
- User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
Hi,
I have always the same problem
I have tried to sourround it with the try/catch
try {
bpelResource = (BPELResourceSetImpl) fResourceSet.getResource(uri, true);
} catch (Exception e1) {
e1.printStackTrace();
}
and its catching an exception
i don't know why ?
any explaination ?
than k you
fokaefs@xxxxxxxxxxxxxx wrote:
Hello,
I am building an Eclipse plug-in for reengineering BPEL files. I tried
to use the BPEL Project's API but I have difficulties in reading the
BPEL file. I've tried the snippet provided here:
http://www.eclipse.org/bpel/developers/model.php
but it seems to be a little outdated. The resourceSet.getResource(uri,
true) command returns a BPELResourceImpl instance, which contains no
process whatsoever. This is the code that I use:
ResourceSet resourceSet = new ResourceSetImpl();
URI uri = URI.createPlatformResourceURI(file.getFullPath().toString());
BPELResourceImpl resource = (BPELResourceImpl)
resourceSet.getResource(uri, true);
org.eclipse.bpel.model.Process process = resource.getProcess();
and the process in the end is null. The file is a validated BPEL file.
Can you tell me whether I do something wrong or there is another problem.
Thank you,
Marios
_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev