workflows now run, but with errors, must fix that next
This commit is contained in:
parent
6fc6b00b49
commit
ccf1b3633f
6 changed files with 38 additions and 31 deletions
|
|
@ -309,21 +309,15 @@ Checks to ensure the requestor is who we think it is, and then executes a workfl
|
|||
|
||||
sub www_runWorkflow {
|
||||
my $session = shift;
|
||||
$session->errorHandler->warn("A");
|
||||
$session->http->setMimeType("text/plain");
|
||||
$session->errorHandler->warn("b");
|
||||
return "error" unless (isInSubnet($session->env->get("REMOTE_ADDR"), $session->config->get("spectreSubnets")));
|
||||
$session->errorHandler->warn("c");
|
||||
my $instanceId = $session->form->param("instanceId");
|
||||
if ($instanceId) {
|
||||
$session->errorHandler->warn("d");
|
||||
my $instance = WebGUI::Workflow::Instance->new($session, $instanceId);
|
||||
if (defined $instance) {
|
||||
$session->errorHandler->warn("e");
|
||||
return $instance->run;
|
||||
}
|
||||
}
|
||||
$session->errorHandler->warn("f");
|
||||
return "error";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue