I have added some comments and checks to make sure that we are building a list of associated dcrs for the files being submitted. The code is still not working.------------------------------------------------------------------------#=====================================================================# Make Sure Filelist Is Defined#===================================================================== my @submit_file = (); # files sorted in unencoded if (__ELEM__('iw_file')) # form, then html-encoded { # by hand via CGI_lite @submit_file = map { TeamSite::CGI_lite::escape_html_data($_); } sort __VALUE__('iw_file'); } #=====================================================================# Module added to include dcrs#===================================================================== my @submit_dcr = (); // define the dcr array my $mydirpath = __TAG__('iw_workarea'); //identify the workarea my $mydirpathreverse = $mydirpath; chomp($mydirpathreverse); $mydirpathreverse =~ s|Y.*)|$1|; $mydirpathreverse =~ s/\//\\/g; //format the directory path foreach $filename(@submit_file) { //loop through the list of files being submitted my $fullfilename = $mydirpathreverse."\\".$filename; my %attributes = MYORG::Utility::getFormInfo($fullfilename); //get the extended attributes my $dcrName = $attributes{"PrimaryDCR"}; chomp($dcrName); $dcrName =~ s/\//\\/g; //get the dcr name my $category = $attributes{"PrimaryDocumentType"}; chomp($category); $category =~ s/\//\\/g; //get the category if ( $dcrName ne "") { my $dcrfilename = "\\templatedata\\".$category."\\data\\".$dcrName; chomp($dcrfilename); push(@submit_dcr, $dcrfilename); //build an array of dcrs to be attached to the workflow } } ------------------------------------------------------------------------Regards,-Jim
If you want to debug your perl put some print statements that output to a log and see if the data you *think* is set is truly there.
The error you listed means the XML generated was invalid. You can check that by putting the WFT in debug mode and viewing the saved XML
I would like to replicate this process for the Add files option in the workflow, which allows for additional files to be added to the pre-started workflow.Currently, if additional html files are selected during the "Add Additional Files" user task, it does not attach the associated dcrs.Any ideas would be appreciated.Thanks,-Jim