Added an error message to SQLForm if we can't find the privileges of the database link

fix: Sometimes the error message for the Calendar Update Feeds is part of the content response.
fix: Serial workflows no longer get held up in the queue
This commit is contained in:
Doug Bell 2007-05-02 20:05:31 +00:00
parent 5ee03110d7
commit fe5bc93a52
5 changed files with 24 additions and 14 deletions

View file

@ -273,8 +273,11 @@ sub run {
return "disabled";
}
if ($workflow->get("isSerial")) {
my ($firstId) = $self->session->db->quickArray("select workflowId from WorkflowInstance order by runningSince");
if ($workflow->getId ne $firstId) { # must wait for currently running instance to complete
my ($firstId) = $self->session->db->quickArray(
"select instanceId from WorkflowInstance where workflowId=? order by runningSince",
[$workflow->getId]
);
if ($self->getId ne $firstId) { # must wait for currently running instance to complete
$self->set({lastStatus=>"waiting", notifySpectre=>0});
return "waiting";
}