use of org.apache.axis2.description.TwoChannelAxisOperation in project carbon-business-process by wso2.
the class BPELProcessProxy method createMessageExchange.
private MyRoleMessageExchange createMessageExchange(final MessageContext inMessageContext) {
Integer tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
MyRoleMessageExchange messageExchange;
String messageId = new GUID().toString();
messageExchange = odeBpelServer.getEngine().createMessageExchange("" + messageId, serviceName, inMessageContext.getAxisOperation().getName().getLocalPart(), null, tenantId.toString());
if (log.isDebugEnabled()) {
log.debug("ODE routed to portType " + messageExchange.getPortType() + " operation " + messageExchange.getOperation() + " from service " + serviceName);
}
messageExchange.setProperty("isTwoWay", Boolean.toString(inMessageContext.getAxisOperation() instanceof TwoChannelAxisOperation));
return messageExchange;
}
Aggregations