Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[bpel-dev] Should the ReplyValidator use myRole rather than partnerRole?

Should the ReplyValidator have a symmetry with the ReceiveValidator in that it validates against myRole rather than the partnerRole? Currently, ReplyValidator checks the Reply is using a port provided by the partner which doesn't seem to make sense because it is a reply to an invocation of one of my ports, not the partners. The InvokeValidator validates against the partnerRole, as expected.


Index: plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/rules/ReplyValidator.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/rules/ReplyValidator.java,v
retrieving revision 1.3
diff -r1.3 ReplyValidator.java
96c96
<         fPartnerRoleNode = lookupRoleNode ( fPartnerLinkNode, AT_PARTNER_ROLE );
---
>         fPartnerRoleNode = lookupRoleNode ( fPartnerLinkNode, AT_MY_ROLE );
114c114
<         fPortTypeFromRole = verifyPortTypeFromRole(fPartnerRoleNode, AT_PARTNER_ROLE,fPortType);
---
>         fPortTypeFromRole = verifyPortTypeFromRole(fPartnerRoleNode, AT_MY_ROLE,fPortType);



-

Regards,
Terry


Back to the top