use the getTTL method to find the time to pause running a Workflow.

This commit is contained in:
Colin Kuskie 2010-09-24 08:16:58 -07:00
parent adcc2690f3
commit 8ecf297931
3 changed files with 10 additions and 9 deletions

View file

@ -111,7 +111,7 @@ sub execute {
$msg->addHtml( $self->get('notificationMessage') );
$msg->queue;
if ( time - $time > 60 ) {
if ( time - $time > $self->getTTL ) {
return $self->WAITING(1);
}
}
@ -140,7 +140,7 @@ sub execute {
$asset->deleteThingRecord( $asset->get('thingId'), $record->getId );
if ( time - $time > 60 ) {
if ( time - $time > $self->getTTL ) {
return $self->WAITING(1);
}
}