when you click edit link on in the visual preview of an html file you are directed to the corresponding dcr. Now i want to submit my corresponding dcr everytime when my html file is submitted. how do i do this?
You can try modifying the Workflow to include an external task that Searches the metadata of the Attached Html pulls out the Primary DCR and attaches the DCR to the same workflow. This way you can submit the DCR along with the HTML.
Or write down a small custom workflow invoked from Submit button. In that add an external task that adds the Primary DCR of the HTML to the workflow and the second task can be Submit task if u do not have to do other processing.
I believe there is a perl module called WFworkflow... Here u can find the function to attach a file to workflow.
-Dixit
You can try modifying the Workflow to include an external task that Searches the metadata of the Attached Html pulls out the Primary DCR and attaches the DCR to the same workflow. This way you can submit the DCR along with the HTML. Or write down a small custom workflow invoked from Submit button. In that add an external task that adds the Primary DCR of the HTML to the workflow and the second task can be Submit task if u do not have to do other processing. I believe there is a perl module called WFworkflow... Here u can find the function to attach a file to workflow. -Dixit
[left]$task->AddFile($path, $comment)[/left]
There is a module called TeamSite::WFworkflow - but the one responsible for allowing additions of files to jobs via tasks is TeamSite::WFtask. Use perldoc on these modules for more information.
hii awgolk i am using ur script to add dcr to workflow. when i run the workflow the html gets submitted to staging are but no the dcr. we add the dcr to the filelist ionside the ipl file that u have provided. but we do not return the updated file list ot workflow anywhere. so only the html gets submitted and dcr doesnt.
i checked the iwjoberrors.log file it says could not run addDCR.ipl, retrying after one minute. i have put loggon inside the ipl file but the log file is empty after runnig the workflow. the r no entries. i think the ipl file is not accessible at all.