String[] params = activity.getPropertyNames(); for(int i=0; ret && params!=null && i<params.length; i++)
/** * Called when a method is invoked on a proxy. */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Future<Void> ret = new Future<Void>(); MActivity act = (MActivity)events.get(method); ThreadContext tc = instance.getThreadContext(); ProcessThread thread = new ProcessThread(""+instance.idcnt++, act, tc, instance); tc.addThread(thread); String[] params = act.getPropertyNames(); for(int i=0; i<params.length; i++) { thread.setParameterValue(params[i], args[i]); } thread.setParameterValue(THREAD_PARAMETER_SERVICE_RESULT, ret); instance.step(act, instance, thread, null); return ret; } }
if(event.getPropertyNames().length==meths[i].getParameterTypes().length)