@Test public void testGetOperationName() { TMessage m=new TMessage(); m.setName("BuyRequest"); String opName=BPMN2ServiceUtil.getOperationName(m); if (opName == null) { fail("No op name"); } if (!opName.equals("buy")) { fail("Expecting 'buy', but got: "+opName); } }
public static String getOperationName(TMessage message) { String ret=Character.toLowerCase(message.getName().charAt(0))+ message.getName().substring(1); ret = ret.replaceAll("Request", ""); ret = ret.replaceAll("Response", ""); ret = ret.replaceAll("Req", ""); ret = ret.replaceAll("Resp", ""); return(ret); }
BPMN2ServiceUtil { public static String getOperationName(TMessage message) { String ret=Character.toLowerCase(message.getName().charAt(0))+ message.getName().substring(1); ret = ret.replaceAll("Request", ""); ret = ret.replaceAll("Response", ""); ret = ret.replaceAll("Req", ""); ret = ret.replaceAll("Resp", ""); return(ret); } }
BPMN2ServiceUtil { public static String getOperationName(TMessage message) { String ret=Character.toLowerCase(message.getName().charAt(0))+ message.getName().substring(1); ret = ret.replaceAll("Request", ""); ret = ret.replaceAll("Response", ""); ret = ret.replaceAll("Req", ""); ret = ret.replaceAll("Resp", ""); return(ret); }  }
BPMN2ServiceUtil { public static String getOperationName(TMessage message) { String ret=Character.toLowerCase(message.getName().charAt(0))+ message.getName().substring(1); ret = ret.replaceAll("Request", ""); ret = ret.replaceAll("Response", ""); ret = ret.replaceAll("Req", ""); ret = ret.replaceAll("Resp", ""); return(ret); }  static java.util.Map<TParticipant,TInterface> introspect(TDefinitions defns); static String getInterfaceName(TParticipant participant); static String getOperationName(TMessage message); static void merge(TDefinitions defns, java.util.Map<TParticipant,TInterface> interfaces); }
BPMN2ServiceUtil { public static String getOperationName(TMessage message) { String ret=Character.toLowerCase(message.getName().charAt(0))+ message.getName().substring(1); ret = ret.replaceAll("Request", ""); ret = ret.replaceAll("Response", ""); ret = ret.replaceAll("Req", ""); ret = ret.replaceAll("Resp", ""); return(ret); }  static java.util.Map<TParticipant,TInterface> introspect(TDefinitions defns); static String getInterfaceName(TParticipant participant); static String getOperationName(TMessage message); static void merge(TDefinitions defns, java.util.Map<TParticipant,TInterface> interfaces); static final String INTERFACE_ID_SUFFIX; }