Designing and Implementing Composite Applications : webMethods CAF and OpenCAF Development Help : Working with JCR Providers : Creating a JCR Sub-Folder Attachments Provider
Creating a JCR Sub-Folder Attachments Provider
The JCR Client Sub-Folder Attachments Provider enables you to create a sub-folder in the My webMethods Server Administrator view that you can use to open, add, delete, or modify files.
This provider can be used to submit a document to start a business, to upload a document to My webMethods Server, create a unique folder for the process, and pass the folder as business data for the process. Tasks can then use the document as an attachment.
You must enable the JCR client for your CAF application before you can use a JCR provider. For more information, see Enabling the JCR Client for a CAF Application.
When you create the Sub-Folder Attachments Provider, Composite Application Framework performs the following:
Component
Description
New provider
A new provider is added to the Bindings view and configured to work with the repository manager in the current session.
Sub Folder Name property
A Sub Folder Name property, bound to the user's login name by default, is added to the provider in the Bindings view, which specifies the name of the sub-folder to be created in the target folder.
Note:  
The Sub Folder Name property value must be a unique name.
Auto Save
The Auto Save setting for the provider is set to true, which automatically saves changes.
Parent ID
The Parent ID is set to the My webMethods Server folder that is used.
Attachments List control
An Attachments List control is added to the user interface.
Attachments List control
An Attachments List control is added to the user interface.
Attachments List control Drag and Drop Available property
The Attachments List control Drag and Drop Available property is set to true, which enables a user to add an attachment by dragging it onto the user interface.
Attachments List control Use WebDav Urls property
The Attachments List control Use WebDav Urls property is set to true.
To use the Sub-Folder Attachments Provider
1. In the MWS Admin view or Palette view, drag a folder onto the design canvas.
2. In the Drop Candidates dialog box, click Create Content Provider, and then click OK.
3. In the Java Type dialog box, click Sub-Folder Attachments Provider, and then click Finish.
4. In the Bindings view, under the provider node, click Sub Folder Name.
5. In the Properties view, click the Data Binding tab, and then, in the Value text box, type a unique name or bind to an expression that resolves into a unique name.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback