ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Weerasiri <ddweeras...@gmail.com>
Subject How to add a breakpoint to a process activity.
Date Mon, 02 Mar 2009 12:06:16 GMT
Hi all,

I'm trying to test the methods of
"org.apache.ode.bpel.engine.BpelManagementFacadeImpl" class.

public class BpelMagFacadeTest {
    BasicActivities20Test = null;
    BpelManagementFacade facade = null;
    ProcessAndInstanceManagementImpl mgtImpl = null;

    public BpelMagFacadeTest(){
        testCase = new BasicActivities20Test();
//setup the BpelServer

        facade = new BpelManagementFacadeImpl(testCase._server,
        mgtImpl = new ProcessAndInstanceManagementImpl(testCase._server,
testCase.store);  //initiate the ManagementAPI

    public static void main(String[] args) throws Throwable {
        BpelMagFacadeTest test = new BpelMagFacadeTest();

//initiate the "HelloWorld" process
http://ode/bpel/unit-test}HelloWorld2-1", "assign1");          //add a
globalBreakPoint to the activity "assign1"

        org.apache.ode.bpel.pmapi.TProcessInfoList processList =
//retrieving the process info


What I get in "processList" is as follows,

<process-info xmlns="http://www.apache.org/ode/pmapi/types/2006/08/02/">
    <process-name xmlns:unit="http://ode/bpel/unit-test
    <instances state="ACTIVE" count="0"/>
    <instances state="COMPLETED" count="0"/>
    <instances state="ERROR" count="0"/>
    <instances state="FAILED" count="0"/>
    <instances state="SUSPENDED" count="0"/>
    <instances state="TERMINATED" count="0"/>

According to retrieved information the process hasn't been suspended.

My problem is ...
 - Is this the correct way to add an breakpoint to an activity?

Please help on this matter.

Best Regards,
Denis Weerasiri.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message