added status return codes to activities, and fixed a problem with workflow parameters

This commit is contained in:
JT Smith 2006-03-16 22:01:39 +00:00
parent 4dc0fc073d
commit ac1a9c7eae
30 changed files with 135 additions and 59 deletions

View file

@ -82,9 +82,10 @@ sub execute {
$self->session->user({user=>$user});
WebGUI::Macro::process(\$cmd);
if (system($cmd)) {
return 0;
$self->session->errorHandler->error("Workflow: RunCommandAsUser failed because: $!");
return $self->ERROR;
} else {
return 1;
return $self->COMPLETE;
}
}