private Object[] createCorrelationData(BAMStreamConfiguration stream, ExtensionContext context, Element element) throws FaultException { List<BAMKey> correlationBAMKeyList = stream.getCorrelationBAMKeyList(); int objectListSize = correlationBAMKeyList.size() + 1; Object[] dataArray = new Object[objectListSize]; dataArray[0] = context.getInternalInstance().getPid().toString(); int startIndex = 1; fillDataArray(dataArray, correlationBAMKeyList, startIndex, context, element); return dataArray; }
context.getInternalInstance().getProcessModel().getOwner(), qnVariableData, qnGetVariableProperty, qnGetLinkStatus, qnDoXslTransform, false); context.getInternalInstance().getExpLangRuntime().registerRuntime(oExpressionLanguage); } catch (ConfigurationException ex) { String errMsg = "Error when trying to register xpath runtime"; ScopeFrame scopeFrame=((ExtensionContextImpl)context).getScopeFrame(); ExprEvaluationContextImpl exprEvaluationContext= new ExprEvaluationContextImpl( scopeFrame,context.getInternalInstance()); List resultList= context.getInternalInstance().getExpLangRuntime().evaluate( oexpr, exprEvaluationContext); if(result != null) {
context.getInternalInstance().getProcessModel().getOwner(), qnVariableData, qnGetVariableProperty, qnGetLinkStatus, qnDoXslTransform, false); context.getInternalInstance().getExpLangRuntime().registerRuntime(oExpressionLanguage); } catch (ConfigurationException ex) { String errMsg = "Error when trying to register xpath runtime"; ScopeFrame scopeFrame=((ExtensionContextImpl)context).getScopeFrame(); ExprEvaluationContextImpl exprEvaluationContext= new ExprEvaluationContextImpl( scopeFrame,context.getInternalInstance()); List resultList= context.getInternalInstance().getExpLangRuntime().evaluate( oexpr, exprEvaluationContext); if(result != null) {
/** * Called when the response for the above service received * * @param mexId MessageExchange id */ public void onRequestReceived(String mexId) throws FaultException { _log.info("Response received"); //((ExtensionContextImpl)extensionContext).setBpelRuntimeContext(context); Element notificationMessageEle = extensionContext.getInternalInstance().getMyRequest(mexId); Node part = extensionContext.getPartData(notificationMessageEle, longRunningActivity.getOutputVariable()); _log.info("RESPONSE: " + DOMUtils.domToString(notificationMessageEle)); _log.info("PART: " + DOMUtils.domToString(part)); extensionContext.writeVariable(longRunningActivity.getOutputVariable(), part); extensionContext.complete(cid); }