public CorrelationKey getCorrelationKey() { return new CorrelationKey(_hobj.getCorrelationKey()); }
public CorrelationKey getCorrelationKey() { return new CorrelationKey(_selector.getCorrelationKey()); }
/** * Restores the state of this correlation key set from a canonical form. * * @param canonicalForm a canonical form of correlation key set */ public void restore(String canonicalForm) { if( canonicalForm == null || canonicalForm.trim().length() == 0 ) return; if( canonicalForm.startsWith("@") ) { parseCanonicalForm(canonicalForm); } else { version = VERSION_1; add( new CorrelationKey(canonicalForm) ); } }
CorrelationKey ckeyVal = new CorrelationKey(cset.declaration.name, propValues); writeCorrelation(cset, ckeyVal);
} else if( ch == ',' ) { if( buf.toString().trim().length() != 0 ) { add( new CorrelationKey(buf.toString()) ); version = buf.toString(); } else { add( new CorrelationKey(buf.toString()) );
protected void initializeCorrelation(CorrelationSetInstance cset, VariableInstance variable) throws FaultException { if (__log.isDebugEnabled()) { __log.debug("Initializing correlation set " + cset.declaration.name); } // if correlation set is already initialized, // then skip if (getBpelRuntimeContext().isCorrelationInitialized(cset)) { // if already set, we ignore if (__log.isDebugEnabled()) { __log.debug("OCorrelation set " + cset + " is already set: ignoring"); } return; } String[] propNames = new String[cset.declaration.properties.size()]; String[] propValues = new String[cset.declaration.properties.size()]; for (int i = 0; i < cset.declaration.properties.size(); ++i) { OProcess.OProperty property = cset.declaration.properties.get(i); propValues[i] = getBpelRuntimeContext().readProperty(variable, property); propNames[i] = property.name.toString(); if (__log.isDebugEnabled()) __log.debug("Setting correlation property " + propNames[i] + "=" + propValues[i]); } CorrelationKey ckeyVal = new CorrelationKey(cset.declaration.name, propValues); getBpelRuntimeContext().writeCorrelation(cset,ckeyVal); }
public CorrelationKey getValue() { entering("CorrelationSetDaoImpl.getValue"); if (_correlationSet.getValue() != null) return new CorrelationKey(_correlationSet.getValue()); else return null; }
key = new OptionalCorrelationKey(cset.name, values); } else { key = new CorrelationKey(cset.name, values);
newKeySet.add(new CorrelationKey(""+selCKey.getCorrelationSetName(), selCKey.getValues())); Selector newSelector = new Selector(sel.idx, sel.plinkInstance, sel.opName, sel.oneWay, sel.messageExchangeId, newKeySet, "one"); newSelector.correlationKey = new CorrelationKey(""+selCKey.getCorrelationSetName(), selCKey.getValues()); newSelectors[index++] = newSelector;
newKeySet.add(new CorrelationKey(""+old.getCSetId(), old.getValues())); Selector newSelector = new Selector(sel.idx, sel.plinkInstance, sel.opName, sel.oneWay, sel.messageExchangeId, newKeySet, "one"); newSelector.correlationKey = new CorrelationKey(""+old.getCSetId(), old.getValues()); newSelectors[index++] = newSelector;
if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade set " + ckey.toCanonicalString()); else { cset.setValue(null, new CorrelationKey(ocset.name, ckey.getValues())); if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade route " + oldKey.toCanonicalString()); else { routeDAO.setCorrelationKey(new CorrelationKey(ocset.name, oldKey.getValues())); if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade route " + oldKey.toCanonicalString()); else { corrMsgDAO.setCorrelationKey(new CorrelationKey(ocset.name, oldKey.getValues()));
keySet.add(new CorrelationKey("-1", new String[] { sessionId })); } else if (!matchCorrelations.isEmpty()) { for( OScope.CorrelationSet cset : matchCorrelations ) {
private CorrelationKeySet computeCorrelationKeys(MyRoleMessageExchangeImpl mex) { CorrelationKeySet keySet = new CorrelationKeySet(); Operation operation = mex.getOperation(); Element msg = BpelRuntimeContextImpl.mergeHeaders(mex.getDAO().getRequest()); javax.wsdl.Message msgDescription = operation.getInput().getMessage(); Set<OScope.CorrelationSet> csets = _plinkDef.getNonInitiatingCorrelationSetsForOperation(operation); for (OScope.CorrelationSet cset : csets) { CorrelationKey key = computeCorrelationKey(cset, _process.getOProcess().messageTypes.get(msgDescription.getQName()), msg); keySet.add(key); } csets = _plinkDef.getJoinningCorrelationSetsForOperation(operation); for (OScope.CorrelationSet cset : csets) { CorrelationKey key = computeCorrelationKey(cset, _process.getOProcess().messageTypes.get(msgDescription.getQName()), msg); keySet.add(key); } // Let's creata a key based on the sessionId String mySessionId = mex.getProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID); if (mySessionId != null) keySet.add(new CorrelationKey("-1", new String[] { mySessionId })); return keySet; }
keySet.add(new CorrelationKey("-1", new String[] {sessionId}));