invocationData.receive = recv;
} else {
if (invocation.getExecutable() != null &&
invocation.getExecutable().getDeclaration() != null &&
invocation.getExecutable().getDeclaration() instanceof CtMethod ){
CtMethod m = (CtMethod)invocation.getExecutable().getDeclaration();
ReplyActivity replyAnn = m.getAnnotation(ReplyActivity.class);
if (replyAnn != null && invocation.getArguments().size() == 1){
scan(invocation.getArguments().get(0));
ASTNodeData arg = nodeDataStack.peek();
if (arg.xsdType != null && arg.xpathExpr != null && arg.variable != null){
for (Receive recv : methodReceiveMap.values()){
if (recv.getName().equals(replyAnn.receiveName())){
Reply reply = BPELFactory.eINSTANCE.createReply();
String replyName = m.getSimpleName();
if (!replyAnn.name().equals(""))
replyName = replyAnn.name();
reply.setName(replyName);
if (exceptionTypes.contains(invocation.getArguments().get(0).getType().getDeclaration()))
reply.setFaultName(arg.xsdTypeQName);
BpelScope tmpScope = new BpelScopeImpl();
setReplyParameters(recv, reply, arg.variable, arg.xsdType, arg.xpathExpr, tmpScope);
invocationData.activity = tmpScope.getActivity();
invocationData.replyActivity = reply;
invocationData.reply = reply;
if (m.getAnnotation(FlowActivity.class) != null){
createMethodFlowMapping(m, invocationData.activity);
invocationData.flowActivity = invocationData.activity;
invocationData.flowMethod = m;
}
break;