We are using a dummy workflow just to show a message to users when they click on Action -> New Job
Workflow Code..
[html]
……………………………….
……………………………….
[/html]
Code of dummycode.ipl
[html]
……………………………….
use CGI; # load CGI routines
#use CGI::Carp qw(warningsToBrowser fatalsToBrowser set_message);
$q = new CGI; # create new CGI object
print "Content-Type: text/html\n\n";
#$form_name = $cgi->{'form'}{'iw_form_name'};
$form_name = "window.opener.top.formframe.document.dcreditForm";
print'';
print <
<script language="Javascript">
function onClickClose()
{
window.close();
return true;
}
</script>
JS
print $q->start_html('Dummy Workflow');
print <
The Publish & Deploy workflow is no longer used. Any content you submit will now be deployed live immediately.Please close this window
EndOfHTML1
print '';
print $q->end_html;
……………………………….
[/html]
Now the problem is whenever which user clicks on Action -> New Job… a new pending job appears in workflow section. The job is not ending.
Do you see any issue in the code?