Home
TeamSite
Regenerating Files via CS SDK
Bill Klish
TeamSite 6.1 SP2
Windows 2003
I am working on writing a Java Servlet that runs inside of content center that needs to regenerate some files after DCRs get updated in a workflow. I don't seem to see a method in the CS SDK API that allows file objects to be regenerated. Am I missing it?
If I have to call iwregen, I don't seem to see a method to access the location of iw-home either. Does an API for that exist either?
Find more posts tagged with
Comments
Johnny
There is no API for templating.
Templating I guess is not a *core* function.
It was built on top of TeamSite completely in PERL, so I wouldn't see an CS API for this for a while.
I don't think CS will know the location of IWHOME, so you may need some sort of config file, or access iw.cfg.
I can see why you may want to use Java, but in some circumstances, it may be less practical.
John Cuiuli
Bill Klish
CS SDK v1.1 and v2.0 had the following:
com.interwoven.cssdk.util.CSTemplateCategory
com.interwoven.cssdk.util.CSTemplateType
which are now deprecated in the later releases.
The Templating UI is actually displayed back to the user using Java servlet technology, but you are correct that a lot of the behind the scenes stuff is perl (especially with PTs).
I agree with the assessment of IWHOME, just was hoping to avoid that route if I could.
I am confused why this functionality is not available in the CS SDK.
Migrateduser
The FormsPublisher capability has not been exposed through CS SDK. I agree it would be very useful.
lissa
Bill Klish
are there any plans to get that into the version that is included with TeamSite 6.7?
PaulW
there is a way of getting IWHOME through the CSSDK. In my java code I did this:
import com.interwoven.serverutils100.IWConfig;
protected static final String IWHOME = IWConfig.getConfig().getIWHome();
For regenerating you will need to do a callout to iwgen or to a perl script.
Bowker
Paul,
Nice suggestion, but executing a Perl script from Java requires a lot of resources and time. We are removing all "system command" procedures to ensure a responsive system. We do that a lot in our current system and we are having trouble with response time.
Therefore in the new version of our in-house application (which rides on top of TeamSite) is 100% CSSDK with no callouts to Perl or any other system command. The only exception to that is an occasional external task in workflows and a few custom commands that are not used very often.
Dan Bowker
Northern Trust
Web Publishing Technology
Bill Klish
Is this a supported means of access? Where did you find this, or did you simply examine the class files/packages until you found this?
PaulW
I understand your concerns regarding this. And I agree it feels **** to write Java code for everything and then occassionally have some perl callouts through the implementation. But unfortunately that is the way it is.
There are other things which are limited, like running workflows. The Workflow classes in the sdk are extremely limited to.
I have done a pretty large cssdk implementation, overriding just about all TeamSite functionality and I have never been able to find any templating within CSSDK. And I have read in other posts it is because it isn't core TS funcitonality. Maybe you could perform an XSL transformation.
Sorry, I can't remember where i found that reference to get IWHome, or when i started using it All I know is that is works in the last 2 cssdks
lhdavis
As an FYI, my client filed Feature Request 62050 for this which states:
Feature request to add the FormsPublisher capabilities into the CSSDK.
For business justification, we have been developing a ColdFusion application that accesses the workarea through the CSSDK and saves content as a DCR. We would like to be able to generate our output files using the CSSDK in a format similar to the iwgen or iwptcompile CLTs.
If you'd like to add your name to the feature request, simply contact Interwoven Support with the above description and FR#. If you can include your own business justification as well, it might help bump this request up in priority.
Luke Davis
Open Technology Group, Inc.
luke.davis@med.va.gov