Hi!
I found another bug in the process and instance management service.
I was running the list processes custom on an ode installation with one
simple process deployed and got errors on the client side because the
properties and endpoints elements were missing (they are required
elements
in the schema). Here is a patch that fixes it. Another way to fix it
is
to make the elements optional in the schema.
-Doug.
Index:
bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstance
ManagementImpl.java
===================================================================
---
bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstance
ManagementImpl.java (rev
ision 612598)
+++
bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstance
ManagementImpl.java (wor
king copy)
@@ -748,6 +748,9 @@
propNode.appendChild(node2append);
}
}
+ else {
+ info.addNewProperties();
+ }
OProcess oprocess = _server.getOProcess(pconf.getProcessId());
if (custom.includeEndpoints() && oprocess != null) {
@@ -766,6 +769,9 @@
}
}
}
+ else {
+ info.addNewEndpoints();
+ }
}