diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/DaibanJob.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/DaibanJob.java new file mode 100644 index 00000000..355f2fb9 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/DaibanJob.java @@ -0,0 +1,46 @@ +package com.actionsoft.apps.coe.pal.datamigration; + +import com.actionsoft.apps.coe.pal.datamigration.Utils.UtilUrl; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.sdk.local.SDK; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import java.io.IOException; + +public class DaibanJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String jobParameter = SDK.getJobAPI().getJobParameter(jobExecutionContext); + try { + readOa(jobParameter); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public void readOa(String taskId) throws Exception { + String taskurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "taskurl"); + String s = readOa(taskurl, taskId); + System.out.println("是否更新了这个代办》》》》》》》》》》"+s); + } + + + public String readOa(String url, String taskid) throws IOException { + String result = "true"; + StringBuffer sendSoapString = new StringBuffer(); + String xmlStr = "\n" + + " \n" + + " \n" + + " \n" + + " LCZD\n" + + " " + taskid + "\n" + + " \n" + + " \n" + + ""; + + System.out.println("xmlstr================" + xmlStr); + String postSoap = UtilUrl.doPostSoap(url, xmlStr, ""); + return postSoap; + } +} \ No newline at end of file