/** * Get the non functional props from the executed call. * @return The call props. */ protected Map<String, Object> getNFProps(boolean intermediate) { // if(method.getName().indexOf("method")!=-1) // System.out.println("aas"); Map<String, Object> ret = nonfunc; // During intermediate results the call is still running and nf vals must be fetched from current invoc ServiceCall sc = intermediate? ServiceCall.getCurrentInvocation(): ServiceCall.getLastInvocation(); if(sc!=null) ret = sc.getProperties(); return ret; } }
public void resultAvailable(Void result) { ServiceCall sc = ServiceCall.getLastInvocation(); // System.out.println("last invoc: "+sc); if("new".equals(sc.getProperty("new"))) { tr.setSucceeded(true); } else { tr.setFailed("Wrong service call properties: "+sc); } ret.setResult(tr); }
IComponentIdentifier cid = ServiceCall.getLastInvocation()!=null && ServiceCall.getLastInvocation().getCaller()!=null ? ServiceCall.getLastInvocation().getCaller() : component.getComponentIdentifier(); cms.getComponentDescription(cid) .addResultListener(new ExceptionDelegationResultListener<IComponentDescription, Void>(ret)
IComponentIdentifier cid = ServiceCall.getLastInvocation()!=null && ServiceCall.getLastInvocation().getCaller()!=null ? ServiceCall.getLastInvocation().getCaller() : component.getComponentIdentifier(); cms.getComponentDescription(cid) .addResultListener(new ExceptionDelegationResultListener<IComponentDescription, Void>(ret)
ServiceCall sc = ServiceCall.getLastInvocation();