private static final long serialVersionUID = 7566742608663452803L;
@Override
public String excute() throws ExedoException {
DOBO ptPI = DOBO.getDOBOByName("do_wfi_processinstance");//do.wfi.processinstance
System.out.println("ptPI=========" + ptPI.getCorrInstance());
if (ptPI.getCorrInstance() == null) {
this.setEchoValue(I18n.instance().get("当前工作流上下文丢失,请重新操作!"));
return null;
}
WFEngine engine = WFEngineFactory.getWFEngine();
ProcessInstance pi = null;
try {
pi = engine.loadProcessInstance(ptPI.getCorrInstance().getUid());
} catch (WFException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}