You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by sa...@apache.org on 2016/07/27 10:05:13 UTC
ode git commit: ODE-1064: Iterate over all Partnerlinks containing
myRole to indenty the correct portType
Repository: ode
Updated Branches:
refs/heads/ode-1.3.x 42aff2dc8 -> 2ca67aaaf
ODE-1064: Iterate over all Partnerlinks containing myRole to indenty the correct portType
Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/2ca67aaa
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/2ca67aaa
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/2ca67aaa
Branch: refs/heads/ode-1.3.x
Commit: 2ca67aaaf953d55547e1148efc7a1c73b27abc03
Parents: 42aff2d
Author: sathwik <sa...@apache.org>
Authored: Wed Jul 27 15:33:52 2016 +0530
Committer: sathwik <sa...@apache.org>
Committed: Wed Jul 27 15:33:52 2016 +0530
----------------------------------------------------------------------
.../main/java/org/apache/ode/bpel/engine/BpelProcess.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ode/blob/2ca67aaa/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
----------------------------------------------------------------------
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
index 0704901..5159b61 100644
--- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
+++ b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
@@ -411,10 +411,12 @@ public class BpelProcess {
PartnerLinkMyRoleImpl target = null;
for (Map.Entry<PartnerLinkMyRoleImpl,Endpoint> e : getEndpointToMyRoleMap().entrySet()) {
if (e.getValue().serviceName.equals(mex.getServiceName())) {
- // First one is fine as we're only interested in the portType and operation here and
- // even if a process has 2 myrole partner links
target = e.getKey();
- break;
+ //Multiple partnerlinks with myRole defined under the same service endpoint requires
+ // iteration to identify the portType, which contains the operation
+ if(target._plinkDef.getMyRoleOperation(mex.getOperationName()) != null) {
+ break;
+ }
}
}
if (target != null) {