Designing and Implementing Composite Applications : webMethods CAF and OpenCAF Development Help : Working with JCR Providers : Creating a JCR Client Temp Attachments Provider
Creating a JCR Client Temp Attachments Provider
The JCR Client Temp Attachments Provider enables you to move or copy files into a designated folder in the My webMethods Server Administrator view. This provider creates an empty temporary folder to store uploaded files, and then deletes the folder when it is no longer used, typically when the managed bean goes out of scope. If the uploaded files are not copied or moved to the target folder, they are also deleted.
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 Temp 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.
Migration Provider
Within the new provider in the Bindings view, Composite Application Framework creates a Migration Provider that includes:
Move Attachments()
Moves attached files from a source folder into a designated folder.
Copy Attachments()
Copies attached files in a source folder into a designated folder.
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 Temp 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 Temp Attachments Provider, and then click Finish.
4. Expand the new provider, expand Migration Provider, and then drag Move Attachments() or Copy Attachments() onto the design canvas. A button to move or copy attached files is added to the user interface.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback