Commit bf4337f5 authored by michael.simon's avatar michael.simon
Browse files

example rule for date compare

parent f85a5162
package edu.kit.scc.webreg.dools.unicluster
import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.drools.UnauthorizedUser;
import java.util.Date;
global org.slf4j.Logger logger;
rule "Registry old"
when
Date( $t: time ) from new Date()
$registry : RegistryEntity( $t after[30d] agreedTime )
then
logger.info( "Date is more than 30d before now" );
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment