amx bpm xdms - d2wh20haedxe3f.cloudfront.net · integrated in tibco amx bpm business studio forms...
TRANSCRIPT
TIBCO Software Inc.
3165 Porter Drive, Palo Alto, CA 94304
Tel: 650-846-5714 Fax: 650-846-1005
http://www.tibco.com
© Copyright 2010 TIBCO Software Inc. All rights reserved. All product names are the trademarks of their respective companies
AcitveMatrix BPM™xDMS simple Document Management System Integrated in TIBCO AMX BPM Business Studio Forms
Overview
This is NOT a official TIBCO Development Document.
Only a first Draft Version.
Created by Jörg Grote (ASG EMEA - TIBCO Germany)
Date: 27.08.2013
Version: 1.3
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 2
Index of contents
AcitveMatrix BPM™xDMS simple Document Management System ................... 1
Integrated in TIBCO AMX BPM Business Studio Forms ............................................ 1
Overview ................................................................................................................... 1
Index of contents ..................................................................................................... 2
Idea ............................................................................................................................ 3
Why & What is in Place ................................................................................................ 3
Solution – BST Form File list ....................................................................................... 3
Solution – BST Form TIFF File Viewer ........................................................................ 6
Install into the AMX Platform ....................................................................................... 9
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 3
Idea
Why & What is in Place
Why? … Simply no real File attachment possibilities in AMX BPM.
First Version Features
Case specific Folder by URL
Common Folders by URL
File list
File upload
File download
TIFF Imageviewer
PDF Documentviewer
The Application full deployable and configurable in AMX Administrator
Configuration
Default File Root must exist to store the Files
RootFilePath >>> Archiv Main Folder
RootFilePath >>> Temporary File Cache Folder
contextRoot >>> WebApp Name for the URL
i.e. “http://127.0.0.1:8080/xDMS/”
defaultConnector >>> WebApp HTTP Connector Port Resource for the URL
i.e. “http://127.0.0.1:8080/xDMS/”
Future Extensions
File History
Security
Supported Filetypes
"doc", "docx", "txt", "jpg", "jpeg", "tif", "pdf", "xls", "xlsx", "zip", "ppt", "pptx", "png", "wmv", "mp4",
"bmp", "7z", "log", "html"
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 4
Solution – BST Form File list
Business Studio Form Example Solution, with the file list Feature:
BST Form Scripts
Task Script to generate a unique ID (only in first Step needed)
the unique ID is need to generate a folder to store files, this not needed if a folder is already
generated by a casestarter (i.e. BW) and case specific file store there.
if (this.getControl("uid").getValue()=="" || this.getControl("uid").getValue()=="Text") { var d = new Date(); f.uid = d.getFullYear()+""+(d.getMonth()+1)+""+d.getDate()+""+d.getHours()+ ""+d.getMinutes()+""+(Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17)); this.getControl("uid").setValue(f.uid.toString()); };
Loader Script
loads a iframe with the file list and upload WebApp, into a pass-through field
this.getControl("fileattachments").setValue("<iframe SCROLLING='no' frameborder=0 width=500 height=200 " + "src='http://127.0.0.1:8080/xDMS/archiv?xfunc=list&folderid="+ this.getControl("uid").getValue()+"&xupload=true'&target=_blank></iframe>");
“uid” Formfield is needed for this example to provide the foldername.
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 5
Other Example Screens
Filelist Example
URL: http://127.0.0.1:8080/xDMS/archiv?xfunc=list&folderid=0
Remark: A Target Parameter can be used to open the TIFF Viewer in a new browser Window.
Filelist Example (with enable Upload Feature)
URL: http://127.0.0.1:8080/xDMS/archiv?xfunc=list&folderid=0&xupload=true
Upload Example
URL: http://127.0.0.1:8080/xDMS/archiv?xfunc=uploader&folderid=0&xupload=true
Upload Response Page Example
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 6
Solution – BST Form TIFF File Viewer
Business Studio Form Example Solution, with TIFF File Viewer Feature:
BST Form Scripts
Loader Script
loads a iframe with the file list and upload WebApp, into a pass-through field
this.getControl("fileattachments").setValue("<iframe SCROLLING='no' frameborder=0 width=500 height=200 " + "src='http://127.0.0.1:8080/xDMS/archiv?xfunc=list&folderid="+ this.getControl("uid").getValue()+"&xupload=true'></iframe>");
“FolderID” Formfield is needed for this example to provide the foldername.
“FileID” is needed for this example to provide the filename from the folder.
Features
Zoom In, Zoom Out, & Scroll the TIFF
conversion of TIFF to JPG (no browser plugin needed on Client side)
open File List Feature
Remark: currently only one Page TIFF Imaged supported
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 7
Other Example Screens
TIFF HTML Viewer, upload Feature enabled
URL:
http://127.0.0.1:8080/xDMS/archiv?xfunc=TIFFViewer&folderid=0&fileid=19000.tif&xupload=true
TIFF Scale to JPG loader, with Image Scaling
URL:
http://127.0.0.1:5004/xDMS/archiv?xfunc=downloadTIFF&folderid=0&fileid=19000.tif&scale=300
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 8
Default WebApp Index Page
URL: http://127.0.0.1:8080/xDMS/
Support embedded PDF Viewer
Use of pdfobject.js allows to show PDF’s without installed PDF Browser Plugin
MS IE 10 FF 23.01
Chrome 29
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 9
Install into the AMX Platform
AMX Administrator
Enter Name & Click Upload DAA file > Next
Click Browse “xDMS.daa” > Next
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 10
Done with Application Setup
Next
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 11
Next
Next
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 12
Select BPMNode > Next
Next
xDMS
© Copyright 2010 TIBCO Software Inc. (BPM Group) All rights reserved. Page 13
Deploy Application
Verify the default xDMS settings and paths