Here is a sticky issue with Interwoven's Teamsite and the initiation with a workflow from code. Basically in Teamsite and other webbased products, everything that you can do in a browser you can, more than likely, do it from code as well. So if their is functionality in the browser but their isn't a documented API to get to it
from the server side, you still may be able to perform the needed functionality. All you need to do from the code is mimic an HTTP::POST. The code is in the expanded version of the entry.
You may need to install some of these perl modules from cpan, I don't remember exactally which ones are standard look at the perl fragment:
###initiate workflow by posting to a cgi.
$ua = LWP::UserAgent->new;
$url = new URI::URL('http://localhost/iw-bin/iwwft_instantiator.cgi');
$req = new HTTP::Request(POST,$url);
$querystring = 'iw_user=NTGroup\administrator&iw_file=\templatedata\generic\addingvalue\data\tman&iw_template_file=wfb/cemex_auto.wft&iw_workarea=/Y:/default/main/portal/content/WORKAREA/content&iw_branch=/default/main/portal/content';
##This next line is what you may need.##
$querystring .= 'name=value';
$req->content($querystring);
my $resp = $ua->request($req);
Now inside of you WFT put a my $sValue = __VALUE__('name','html');. And print the $sValue to a file or something.
The post is what initiates the WFT to become a new job. So that is what is compiling the WFT. The cgi allows the WFT to access query string values through the __Value__ tag.
Posted by twissink at September 11, 2003 09:57 AM