my $failure=""; foreach (@checkfilelist) { $cmd = "$iwhome/bin/iwgetfilejobs.exe $iw_area_vpath/$_"; $result = `$cmd`; $result =~ s|$iw_area_vpath||g; $result =~ s|\.xml|.xml |; if ($result =~ m|job=|) { $failure .= " $result";} } if ($failure) { CGI_info( pre_tagtable_html => "Selected Files are in existing jobs: $failure", title => "Please click Cancel Button", ); }
TAG_info( iw_dummy_tag => [ html => "", is_required=> 'true' ]);
Thanks nipper! The code works for the situation that DCRs are associated with a job.How would you be able to check the situation that the DCRs are not associated with any job but locked by another user. I our case, we only want to instantiate the workflow if the selected DCRs are without any lock or locked by the current user who submitted the DCRs to a workflow?