how to create a file in a workarea
Options
Comments
-
Quite simple actually. Just choose File\New File from webdesk and follow the directions for creating a file. You could also create on your machine and choose File\Import Files... to import it to the workarea.
To submit, choose File\Submit (or the submit button), enter any comments and press "Run Job" to execute the out-of-the-box submit workflow.
David M. Doggette
Certified Interwoven Consultant0 -
I think he meant the Java way. Source code I would assume.0
-
To submit a file, try something along these lines:
Collection subs = new HashSet();
IWFileBatch.SubmitFileRequestInfo sfri;
IWFileBatch.ResultOfChange submitRes;
sfri = new IWFileBatch.SubmitFileRequestInfo();
sfri.fileComment = "";
sfri.fromFile = sf;
subs.add(sfri);
String waPath = IWPath.extractAreaPath(IWPath.smOutputShortHost, targetDir);
IWWorkArea wa = (IWWorkArea) IWPathNamedObject.lookupByPath(fsServ, waPath);
IWFileBatch.ResultOfChange res = IWFileBatch.submit(fsServ, wa, subs, IWFile.rkmSelf, null, true, false, null, "Submit by xFactora", "File changed", true, true, IWFile.oNone);
}
catch (Exception e) {
System.err.println("Caught exception " + e + ".");
e.printStackTrace();
System.exit(-1);
}0 -
Can u please send me the code for how to create the file in workarea. Tha java way0
-
Please refer to the examples shipped with the OpenAPI SDK. The filesystem example(s) should answer your question.0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.