Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] Validator, xpath 1.0 parser.

Danilov, Oleg V wrote:

Hi,

 

I’m sorry, looks like I’ve missed your question…

 

Actually this listener has been added to enable functionality already existing in the BPELResourceSetImpl. I mean we need to remove changed resource from cache. Otherwise, even if wsdl file has been changed, we will see an old partnerlink types in the “Choose Partner Link Type”, etc…

ok that makes sense, but i  think it would more prudent not to couple it to the workspace just in case it's not running.

In 3.4 I think a new method exist in ResourceSetImpl (the official one) which has an additional method to load a resource forcing the type by passing the extension of the resource. This in some way makes the need for BPELResourceSetImpl less necessary though I am not quite sure if completely unnecessary yet.

I'll double check that part ....


-michal

 

Thanks,

  Oleg

 

From: bpel-dev-bounces@xxxxxxxxxxx [mailto:bpel-dev-bounces@xxxxxxxxxxx] On Behalf Of Michal Chmielewski
Sent: Tuesday, August 05, 2008 3:10 AM
To: BPEL Designer project developer discussions.
Subject: [bpel-dev] Validator, xpath 1.0 parser.

 

All,

Just wanted to let you know that I checked in the xpath 1.0 parser that attempts to behave almost exactly from an API perspective as Jaxen did. Some junit tests to boot as well.

The parser just parses the source and builds syntax trees but does not provide and runtime support for evaluating the Xpath expressions. If someone wants to add this, that's fine, we don't really need it at this point. The syntax also remember where the main tokens were in the _expression_ so that errors can be hi-lighted as well.

All of this sits in the plugin org.eclipse.bpel.xpath10.

>From the validator perspective, a little code changes as well to adapt to this parser.

I had a question regarding the BPELResourceSetImpl in the model package. I've commended the lines that are causing some pain when I want to run the validator stand-alone outside of eclipse [have not chacked that in yet, want to understand the change]

I think they were added by Oleg on around may 13.

public BPELResourceSetImpl() {
        super();
        // IWorkspace workspace = ResourcesPlugin.getWorkspace();
        // workspace.addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD);
    }


The simple part is that I need a resourceset (the "slightly hacked version", which can load URI based on extension) but it needs to be able to run outside of the eclipse env.
The ResourceChange listener is there just to flush a the content of what is cached after a build ... seems that this could be done elsewhere.

-michal

-- 
Michal Chmielewski, CMTS, Oracle Corp, 
W:650-506-5952 / M:408-209-9321 
 
"Manuals ?! What manuals ? Son, it's Unix, you just gotta know." 
--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
  

_______________________________________________ bpel-dev mailing list bpel-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/bpel-dev


-- 
Michal Chmielewski, CMTS, Oracle Corp, 
W:650-506-5952 / M:408-209-9321 

"Manuals ?! What manuals ? Son, it's Unix, you just gotta know." 

Back to the top