package org.openfact.ubl.send.pe;

import org.openfact.models.OpenfactSession;
import org.openfact.ubl.send.UblTaskRunnerProvider;

public class UblTaskRunnerProvider_PE implements UblTaskRunnerProvider {

    protected OpenfactSession session;

    public UblTaskRunnerProvider_PE(OpenfactSession session) {
        this.session = session;
    }

    @Override
    public void close() {
    }

    @Override
    public void exececuteTask() {
        System.out.println("UblTaskRunnerProvider_PE");
        sendInvoices();
        sendCreditNotes();
        sendDebitNotes();
    }

    protected void sendInvoices() {

    }

    protected void sendCreditNotes() {

    }

    protected void sendDebitNotes() {

    }

}

@@ -28,16 +28,229 @@
 nd.pe;%0A%0A
+import java.io.File;%0A%0Aimport javax.sql.DataSource;%0A%0Aimport org.easybatch.core.job.Job;%0Aimport org.easybatch.core.job.JobBuilder;%0Aimport org.easybatch.core.job.JobExecutor;%0Aimport org.easybatch.core.job.JobReport;%0A
 import o
@@ -338,16 +338,74 @@
 vider;%0A%0A
+import static org.easybatch.core.job.JobBuilder.aNewJob;%0A%0A
 public c
@@ -879,24 +879,262 @@
 nvoices() %7B%0A
+        //Job job = JobBuilder.aNewJob().named(%22myName%22).build();%0A%0A        // Execute the job%0A        /*JobExecutor jobExecutor = new JobExecutor();%0A        JobReport jobReport = jobExecutor.execute(job);%0A        jobExecutor.shutdown();*/
 %0A    %7D%0A%0A    

task runner