博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
构建富互联网应用程序监控工作流和流程(6)
阅读量:7056 次
发布时间:2019-06-28

本文共 1445 字,大约阅读时间需要 4 分钟。

以下代码片段显示了 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,如需转载请自行联系原作者
你可能感兴趣的文章
2019-04-09 SpringBoot+Druid+MyBatis+Atomikos 的多数据源配置
查看>>
分解质因数
查看>>
字符型图片验证码识别完整过程及Python实现
查看>>
js,jquery获取url参数
查看>>
Java基础学习总结(36)——Java注释模板
查看>>
erange.heetian.com 回显任意账号
查看>>
OBJ文件格式简介
查看>>
实验三 有限自动机的构造与识别
查看>>
python的学习笔记之——time模块常用内置函数
查看>>
计算机是如何工作的
查看>>
【c++】必须在类初始化列表中初始化的几种情况
查看>>
阿拉伯数字1与英语字母l造成的代码bug
查看>>
深度学习常见的专业术语
查看>>
2018-2019-2 20165334《网络对抗技术》Exp2 后门原理与实践
查看>>
HTML提交方式post和get区别(实验)
查看>>
Java 11.do语句
查看>>
学习理论之感知器与最大间隔分类器
查看>>
Be Nice!要善良
查看>>
二、ansible配置简要介绍
查看>>
解决docker容器中无ifconfig命令和ping命令问题
查看>>