构建富互联网应用程序监控工作流和流程(6)

以下代码片段显示了 getProcessModel 和 getInstanceAuditTrail 方法。
  getProcessModel 方法
/**
* This function gets the debugger XML model of a given BPEL process.

* The function returns the xml model.


* @param strProcessID
*            the business process name.
* @return the xml process model.
*/
public String getProcessModel(String strProcessID) {
 System.out.println("getProcessModel - " + strProcessID);
 String strProcessModel = "";
 try {
  IBPELProcessHandle process = getLocator().lookupProcess(
    strProcessID);
  // Returns the debugger XML model of this BPEL process.
  strProcessModel = process.getProcessModel();
 } catch (Exception e){
  e.printStackTrace();
  strProcessModel = ERROR_STRING;
 }
 return strProcessModel;
}
getInstanceAuditTrail 方法 
/**
* This function gets the XML audit trail of a given BPEL process.

* The function returns the xml model.


* @param strProcessID
*            the business process name.
* @return the xml process model.
*/
public String getInstanceAuditTrail(String strInstanceReferenceID) {
 System.out.println("getInstanceAuditTrail - " + strInstanceReferenceID);
 String strResponse = "";
 try {
  IInstanceHandle instance = getInstance(strInstanceReferenceID);
  // Returns the XML representation of the audit trail of this
  // instance.
  strResponse = instance.getAuditTrail();
 } catch (Exception e){
  e.printStackTrace();
  strResponse = ERROR_STRING;
 }
 return strResponse;
}









本文转自 牛海彬 51CTO博客,原文链接:http://blog.51cto.com/newhappy/77191,如需转载请自行联系原作者
上一篇:SAP MM 物料主数据中MRP2 View中的Procurement Type字段值不能改?


下一篇:关于Expression Tree和IL Emit的所谓的"性能差别"