The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package TestCachedApp::Condition::EvenSeconds;

# $Id$

use strict;
use base qw( Workflow::Condition );
use Workflow::Exception qw( condition_error );

sub evaluate {
    my ( $self, $wf ) = @_;
    sleep 1;
    if (time() % 2 == 1) {
        condition_error "Current seconds are not divisible by 2";
    }
}

1;