All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.persistence.jpa.JDKCallableJobCommand Maven / Gradle / Ivy

There is a newer version: 9.44.0.Final
Show newest version
package org.drools.persistence.jpa;

import org.drools.core.command.impl.GenericCommand;
import org.kie.internal.command.Context;

public class JDKCallableJobCommand
    implements
    GenericCommand {

    private static final long   serialVersionUID = 4L;

    private JpaTimerJobInstance job;

    public JDKCallableJobCommand(JpaTimerJobInstance job) {
        this.job = job;
    }

    public Void execute(Context context) {
        try {
            return job.internalCall();
        } catch ( Exception e ) {
            e.printStackTrace();
        }
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy