本文介绍了Eclipse的BPEL Designer:如何调试BPEL流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试调试一个BPEL流程。我使用BPEL Designer for Eclipse(3.7.2),我使用Ode 1.3作为引擎。



我不知道如何调试我的进程。我可以在调试会话中将其部署到ode上,但我不明白我可以做什么。

解决方案

你可以在上部署以WS-BPEL 2.0标准开发的BPEL流程。
在WSO2 Business Process Server上部署BPEL流程后,您可以使用以下机制来调试/排除故障。



1.使用Message Tracer。这使您可以查看BPS服务器的入站和出站邮件。为BPEL流程启用邮件跟踪日志;



将以下条目添加到$ CARBON-HOME / lib / log4j.properties



log4j.logger.org.apache.ode.bpel.messagetrace = TRACE log4j.logger.org.wso2.carbon.bpel.messagetrace = TRACE



应优先配置log4j appender,使其具有TRACE级别的阈值。如果CARBON_LOGFILE是log4j appender,则应更改如下。默认情况下设置为DEBUG。



eg - log4j.appender.CARBON_LOGFILE.threshold = TRACE



Re - 启动服务器。



2.使用实例信息页面中的事件表(图1)。成功执行后,每个活动都应该有3个事件。如果一个活动只有2个事件,或者如果它有一个ActivityFailureEvent,那么这个特定活动中的某些事情就会出错。您可能需要参考WSO2 BPS服务器的日志文件以便进一步调查此问题。




I'm trying to debug a BPEL process. I made it using BPEL Designer for Eclipse (3.7.2), i'm using Ode 1.3 as engine.

I have no idea how to debug my process. I can deploy it on ode in a debug session but I don't really understand what can i do after that.

解决方案

You can deploy BPEL processes developed in WS-BPEL 2.0 standard on WSO2 BPS server.Once you deploy the BPEL process on WSO2 Business Process Server, you can use following mechanisms to debug/troubleshoot failures.

1.Using Message Tracer. This enables you to view the inbound and outbound messages to and from BPS server. To enable message trace logs for BPEL processes;

Add the following entries to the $CARBON-HOME/lib/log4j.properties

log4j.logger.org.apache.ode.bpel.messagetrace=TRACE log4j.logger.org.wso2.carbon.bpel.messagetrace=TRACE

The preferred log4j appender should be configured such that it has a threshold of TRACE level. If CARBON_LOGFILE is the log4j appender, it should be changed as follows. By default this is set to DEBUG.

eg - log4j.appender.CARBON_LOGFILE.threshold=TRACE

Re-start the server.

2.Using the Event table in the 'Instance Information' page (Figure 1). Each and every activity should have 3 events upon the successful execution. If an activity only has 2 events or if it has an "ActivityFailureEvent", then something must have gone wrong within that particular activity. You may need to refer the log file of WSO2 BPS server in-order to further investigate on the issue.

这篇关于Eclipse的BPEL Designer:如何调试BPEL流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 18:40