Doorgaan naar hoofdcontent

File Connector for Cordys BOP4

When I wanted to use files to read from a directory I had to install the file connector of Cordys. Unfortunately I could not find much documentation of it on the Cordys wiki, so I started to find it out myself. This blog guides you through the installation, configuration and use of the File Connector package.

I use the latest BOP4 VM environment and the file connector isv package can be found here.

Install ISV Package


  • Goto Application Registry (Note: This is only available within organization "system")



  • Select Install New Applications
  • Click “Upload New Application”
  • Select the .isvp file (in our example the CoE_File Connector_1.2.14.isvp)
  • Check “Cordys CoE File Connector 1.2” and click “Start Installation”



  • Click Next

  • Check the connector and click next
  • Click Install
  • The package should be installed and the next window is shown



  • Click Finish

Configuration


  • Goto System Resource Manager
  • Show All Service Groups
  • New Service Group


  • Select File Connector and Next
  • Fill in Service Group Details



  • Click Next
  • Fill in Service Container Details


  • Click Next
  • Fill in File Connector configuration where to read files




  • Click Next
  • Leave Connection Point Details default settings
  • Click Finish
  • Notice in the Service Containers window that the File Connector is starting or started

Configuring of File Polling


  • In the File Connector just created you can configure the Reader- and Writer configurations
  • Goto Properties of the File Connector
  • Click the File Connector Tab



  • Go to the XMLStore



  • Create fileconnector and config directories
  • Create New Item within config directory: reader-config.xml

Content:

  
    BPM
    /home/declaraties
    *.xml
    10
    
      FunctieDeclaratie
      http://schemas.cordys.com/default
      o=Organization1,cn=cordys,cn=defaultInst,o=cordys.com
      cn=Student1,cn=organizational users,o=Organization1,cn=cordys,cn=defaultInst,o=cordys.com
      
        definition
        Business Process Models/FunctieDeclaratie
        
          
        
        Run from Directory Poller
      
    
  
 

Use of File Interface


  • In WebServices Folder in the Workspace select Add Runtime Reference – Webservice Interface



  • Select File Connector and click Finish



  • Now you can use the methods within a Process


  • When you run the operation you can get the error:
    “Student1 not in the any role …”. This is due to the fact that the user has to have the “everyone” role (Do not forget to check “Include internal roles”)



Reacties

  1. Have you tried poller-config to trigger a business process when receiving a file ?
    I am in touch Cordys guy but can not make it work. The file I am trying to retrieve is on remote server (Iseries / IFS) which is mounted on the Linux Cordys server.
    Regards,
    Brieuc

    BeantwoordenVerwijderen
  2. I only got the operations work and not the polling mechanism. Did you manage to retrieve the file locally on the Linux Cordys Server? Or is the file picked up but the process is not executed ?

    BeantwoordenVerwijderen
  3. Hi Roger,

    The issue was coming from permissions on the ISeries side, the service could not move the files when attempting to poll. Changed the permissions and it is ok...

    Regards,
    Brieuc

    BeantwoordenVerwijderen
  4. how to create custom connector?

    BeantwoordenVerwijderen

Een reactie posten

Populaire posts van deze blog

Microservices mindmap

"The tree" - See also   my photo page When you are fairly new within the Microservices land, there are a lot of terms fired at you. So also for my own understanding i have made a mindmap. I think it has a good status now, so that i can share it with you. As always feedback is very welcome ! You can download the mindmap here .

OSB 10gR3 and SWA and MTOM

This blog is about using soap with attachments and the use of MTOM within the OSB (10gR3). A service is created that accepts a soap with attachment (DocumentService) and translates it to a service that accepts a binary element. MTOM is used for performance reasons for the second. Some notes: * For the use of attachments you need RPC-style document instead of the usual document-style. This due to the fact that the document-style limits a message to a single . * A service can not have both SWA and MTOM within OSB. First a WSDL is setup for the DocumentService: The $attachments variable holds the attachments and the body holds the attachment data. Also other data is stored within the attachment element (see h...

Cloud to Cloud Application Integration

A lot of applications have integration possibilities, so do cloud applications. The question I got from a customer is whether to have a point-to-point integration with Cloud applications or to go through their ESB solution. This blog describes some considerations. Context The customer has a HRM application in which job vacancies are managed. Furthermore that system also handles the full applicant process flow. They also have another cloud application that handles the job vacancies. This application posts the jobs to social sites and other channels to promote the vacancies. Furthermore this application has some intelligence for job seekers to advice some new vacancies based on previous visits or profiles. The job vacancies need to be sent to the Vacancies application and applicant information needs to be sent to the HRM application, when a job seeker actually applies for a job. Furthermore status information about the job application is als...