The concept of "realtime" workflow has been eliminated. Instead all workflows are now realtime (synchronous), and roll over to be asynchronous if they cannot complete succesfully and immediately.
This commit is contained in:
parent
51019e5dca
commit
01d9af6222
15 changed files with 105 additions and 72 deletions
|
|
@ -400,20 +400,8 @@ sub requestCommit {
|
|||
$self->{_data}{committedBy} = $self->session->user->userId;
|
||||
$self->{_data}{workflowInstanceId} = $instance->getId;
|
||||
$self->session->db->setRow("assetVersionTag","tagId",$self->{_data});
|
||||
|
||||
# deal with realtime
|
||||
if ($instance->getWorkflow->isRealtime) {
|
||||
my $status = $instance->runAll;
|
||||
if ($status eq "done") {
|
||||
$instance->delete;
|
||||
} else {
|
||||
my $errorMessage = "Realtime workflow instance ".$instance->getId." returned status ".$status." where
|
||||
'done' was expected";
|
||||
$self->session->errorHandler->warn($errorMessage);
|
||||
return $errorMessage;
|
||||
}
|
||||
}
|
||||
return '';
|
||||
$instance->start;
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue