Get all the files into '@iw_file' through the task->GetFiles() method.Iterating through the @iw_file array. All file paths are relative to the root of the workarea. As you see them attached to the task in the UI.EDIT - On re reading your post, you will have to attach EA's to the generated file for Primary DCR. Read the Primary DCR name, and attach the DCR to your task.HTH-Rajat
You need to pass the task_id from the workflow to the ipl and then do something like this:my ($task) = new TeamSite::WFtask($task_id);my @iw_file = $task->GetFiles();for each my $file (@iw_file){}Nitesh - Suggest you to spend some time reading the WFTask documentation. It will be really helpful to you. Adam had suggested it in your previous thread as well.
Use this directly in your workflow (in template_script tags):# Take the list of files in 'iw_file' and sort them in unencoded form.my @submit_file = (__ELEM__('iw_file') ? sort __VALUE__('iw_file') : ());this code is available in Solution Workflows shipped with TeamSite.I will suggest making any manipulations an external task, calling an ipl and passing these values to that file. Otherwise you are in for a long night of debugging the workflow. And maintenance overheads as the Workflow grows...Your wish... Signing off..
Hi,We have a workflow which is getting invoked by below method..1. Select the generated ASP files2. Click on Action -> New JobIn this scenario, how to get DCR PATH starting from "templatedata\...\dcr_name" in workflow.. Thanks & Regards,Nitesh Ambuj
Are all these ASP pages got generated thru the DCRs, you are looking for?If yes, then the simplest way known to me is that after generating the ASP page, you need to set extended attribute to the page itself.HTH.
As I understand I'll have to use "iwextattr" to set DCR path to the generated ASP pages..Do you have any sample code... I'm looking into the document for Command Line Tools which provides all the options but I want to check how to set this from TPL so that it doesn't affect my ASP and also how to retrieve this in Workflow...
When ASP pages get generated through template EA automatically get attached to it.You need to get the attribute 'TeamSite/Templating/PrimaryDCR' this will give you the dcr file name and also if you want the category and data-type you need to get the value of EA 'TeamSite/Templating/PrimaryDocumentType' add the two will give you the path.Hope this helps.