MatthiasEberl / cordysfilecon

Automatically exported from code.google.com/p/cordysfilecon
Apache License 2.0
0 stars 0 forks source link

Trigger for Folder does not use namespaces #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure a trigger soap call with namespaces
2. Run the trigger
3. The soap call is done without the namespaces

What is the expected output? What do you see instead?
The soap request should be with the namespaces

What version of the product are you using? On what operating system?
BOP4 CU18, Linux

Please provide any additional information below.
I have configured the following polling configuration within the XML Store:
  <folder>
    <name>Incoming Retour berichten</name>
    <location>/opt/sw/data/azr/incoming</location>
    <filter>*.txt</filter>
    <track-time>10</track-time>
    <trigger>
      <method>RequestProcess</method>
      <namespace>http://schemas.cordys.com/1.0/coboc</namespace>
      <organization>o=CIBER,cn=cordys,cn=development,o=gen.cms.local</organization>
      <user>cn=ciber,cn=organizational users,o=CIBER,cn=cordys,cn=development,o=gen.cms.local</user>
      <move-file>true</move-file>
      <parameters>
        <type>definition</type>
        <receiver>com/azr/Generic/GeneriekSendMessage</receiver>
        <message>
          <inputGeneriekMessage xmlns="http://schemas.cordys.com/default">
            <md:Metadata xmlns:md="http://www.ciber.nl/azr/CDM/Metadata/v1">
              <md:MessageID />
              <md:MessageName FCDP:element-data="filename" />
              <md:MessageType>AW318</md:MessageType>
              <md:MessageVersion>3.0</md:MessageVersion>
              <md:ConversationID />
              <md:RefMessageID />
              <md:MessageDescription />
              <md:Sender />
              <md:Receiver />
              <md:SentDate />
            </md:Metadata>
            <Data xmlns="http://schemas.cordys.com/default">
              <Encoded>false</Encoded>
              <Payload FCDP:element-data="content-text" />
            </Data>
          </inputGeneriekMessage>
        </message>
        <source>Run from Directory Poller</source>
      </parameters>
    </trigger>
  </folder>

When i put a file witin the folder and look at the PIM, i see the following 
soap call:

<inputGeneriekMessage xmlns="http://schemas.cordys.com/default" > 
 <Metadata> 
   <MessageID/> 
   <MessageName>CIBER_2011-10-01T00:35:21.0.aw318</MessageName> 
   <MessageType>AW318</MessageType> 
   <MessageVersion>3.0</MessageVersion> 
   <ConversationID/> 
   <RefMessageID/> 
   <MessageDescription/> 
   <Sender/> 
   <Receiver/> 
   <SentDate/> 
 </Metadata> 
 <Data> 
  <Payload> Content file </Payload> 
 </Data>
</inputGeneriekMessage> 

This is wrong and when i try to read the content with XPath it does not return 
the correct values.

Original issue reported on code.google.com by rvdkimme...@gmail.com on 1 Oct 2011 at 9:58

GoogleCodeExporter commented 9 years ago
It is a namespace issue with the RequestProcess Method in coboc method set . 
Can u use Execute Process in bpm method set instead . It will solve your 
problem.
Give the Polling configuration as ::
<folder>
    <name>Incoming Retour berichten</name>
    <location>/opt/sw/data/azr/incoming</location>
    <filter>*.txt</filter>
    <track-time>10</track-time>
    <trigger>
      <method>ExecuteProcess</method>
      <namespace>http://schemas.cordys.com/bpm/execution/1.0</namespace>
      <organization>o=CIBER,cn=cordys,cn=development,o=gen.cms.local</organization>
      <user>cn=ciber,cn=organizational users,o=CIBER,cn=cordys,cn=development,o=gen.cms.local</user>
      <move-file>true</move-file>
      <parameters>
        <type>definition</type>
        <receiver>com/azr/Generic/GeneriekSendMessage</receiver>
        <message>
          <inputGeneriekMessage xmlns="http://schemas.cordys.com/default">
            <md:Metadata xmlns:md="http://www.ciber.nl/azr/CDM/Metadata/v1">
              <md:MessageID />
              <md:MessageName FCDP:element-data="filename" />
              <md:MessageType>AW318</md:MessageType>
              <md:MessageVersion>3.0</md:MessageVersion>
              <md:ConversationID />
              <md:RefMessageID />
              <md:MessageDescription />
              <md:Sender />
              <md:Receiver />
              <md:SentDate />
            </md:Metadata>
            <Data xmlns="http://schemas.cordys.com/default">
              <Encoded>false</Encoded>
              <Payload FCDP:element-data="content-text" />
            </Data>
          </inputGeneriekMessage>
        </message>
        <source>Run from Directory Poller</source>
      </parameters>
    </trigger>
  </folder>

Original comment by vni...@cordys.com on 4 Oct 2011 at 5:45