Package ca.uhn.fhir.jpa.migrate.taskdef
Class ExecuteTaskPrecondition
java.lang.Object
ca.uhn.fhir.jpa.migrate.taskdef.ExecuteTaskPrecondition
Contains a pre-built precondition to evaluate once
BaseTask.execute() is called.
Includes both a Supplier containing the logic to determine if the precondition evaluates to true or false and
a reason String to output to the logs if the precondition evaluates to false and halts execution of the task.-
Constructor Details
-
ExecuteTaskPrecondition
public ExecuteTaskPrecondition(Supplier<Boolean> thePreconditionRunner, String thePreconditionReason)
-
-
Method Details