[Users] BPEL count

ccaron caron.clement at gmail.com
Wed Mar 16 10:54:49 CET 2011


Hi all !
Is it possible to "count" in easyBPEL ?
I tried this :

Code:
<![CDATA[count($SourceReaderResponse.return/resources/resource)]]>



But it always return 0, whereas I have these data :


Code:
Message -> name: {http://weblab-project.org/services/sourcereader/types}getResourceReturn - service = null - endpoint = null - operation = null
<?xml version="1.0" encoding="UTF-8"?>
<ns5:getResourceReturn xmlns:ns5="http://weblab-project.org/services/sourcereader/types" xmlns:ns2="http://weblab-project.org/services/configurable/types" xmlns:ns3="http://weblab-project.org/services/exception" xmlns:ns4="http://weblab-project.org/services/foldercrawling/types">
   <resources uri="weblab://folderCrawlerService/tempCollection-1269523392512">
      <resource xmlns:ns7="http://weblab-project.org/core/model/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" synchronised="false" uri="weblab://crawlerFolder/file0" xsi:type="ns7:document">
         <annotation uri="weblab://crawlerFolder/file0#a0">
            <data>
               <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:wlp="http://weblab-project.org/core/model/property/processing/">
                  <rdf:Description rdf:about="weblab://crawlerFolder/file0">
                     <dc:format>application/pdf</dc:format>
                     <wlp:hasOriginalFileName>0-WDK-Introduction.pdf</wlp:hasOriginalFileName>
                     <dc:source>/home/leff/Bureau/weblab/apache-tomcat-6.0.18/bin/../../toIndex/0-WDK-Introduction.pdf</dc:source>
                     <dct:modified>2009-09-15T17:58:04+0200</dct:modified>
                     <wlp:hasOriginalFileSize>383051</wlp:hasOriginalFileSize>
                     <dct:extent>383051 bytes</dct:extent>
                     <wlp:hasGatheringDate>2010-03-25T14:23:12+0100</wlp:hasGatheringDate>
                     <wlp:hasNativeContent rdf:resource="weblab://crawlerFolderContent/1269523392512/0"/>
                  </rdf:Description>
               </rdf:RDF>
            </data>
         </annotation>
      </resource>
      <resource xmlns:ns7="http://weblab-project.org/core/model/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" synchronised="false" uri="weblab://crawlerFolder/file1" xsi:type="ns7:document">
         <annotation uri="weblab://crawlerFolder/file1#a0">
            <data>
               <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:wlp="http://weblab-project.org/core/model/property/processing/">
                  <rdf:Description rdf:about="weblab://crawlerFolder/file1">
                     <dc:format>application/pdf</dc:format>
                     <wlp:hasOriginalFileName>5-WDK-Integration.pdf</wlp:hasOriginalFileName>
                     <dc:source>/home/leff/Bureau/weblab/apache-tomcat-6.0.18/bin/../../toIndex/5-WDK-Integration.pdf</dc:source>
                     <dct:modified>2009-09-15T17:58:27+0200</dct:modified>
                     <wlp:hasOriginalFileSize>2193710</wlp:hasOriginalFileSize>
                     <dct:extent>2193710 bytes</dct:extent>
                     <wlp:hasGatheringDate>2010-03-25T14:23:12+0100</wlp:hasGatheringDate>
                     <wlp:hasNativeContent rdf:resource="weblab://crawlerFolderContent/1269523392512/1"/>
                  </rdf:Description>
               </rdf:RDF>
            </data>
         </annotation>
      </resource>
   </resources>
</ns5:getResourceReturn>



Did I make something wrong?
Thanks

Clément




-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications.

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=30673#30673

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/4c827541/attachment.htm>


More information about the Users mailing list