public CorrelationKeySet getCorrelationKeySet() { return new CorrelationKeySet(correlationKeySet); } public void setCorrelationKeySet(CorrelationKeySet correlationKeySet) {
public CorrelationKeySet getCorrelationKeySet() { return new CorrelationKeySet((String) _jobDetail.get("ckeySet")); }
public void setCorrelationKey(CorrelationKey key) { _ckeySet = new CorrelationKeySet(); _ckeySet.add(key); }
public void setCorrelationKey(CorrelationKey ckey) { keySet = new CorrelationKeySet(); keySet.add(ckey); } }
public CorrelationKeySet getCorrelationKeySet() { return new CorrelationKeySet(_selector.getCorrelationKey()); }
public CorrelationKeySet getKeySet() { // backward-compatibility; add up keys if( _keys.size() > 0 && _keySet == null ) { _keySet = new CorrelationKeySet(); } for (CorrelationKey aKey : _keys) { if (aKey != null && !_keySet.contains(aKey)) { _keySet.add(aKey); } } return _keySet; }
public CorrelationKeySet getCorrelationKeySet() { // backward compatibility; add up if (_correlationKey != null) { if( _correlationKeySet == null ) { _correlationKeySet = new CorrelationKeySet(); } if(!_correlationKeySet.contains(_correlationKey)) { _correlationKeySet.add(_correlationKey); } } return _correlationKeySet; }
CorrelationKeySet explicitKeySet = new CorrelationKeySet(); for( CorrelationKey ckey : correlationKeys ) { CorrelationKeySet subKeySet = new CorrelationKeySet(); int bitPattern = setIndex; // the bitPattern will be 0b0000, 0b0001, 0b0010 and so on Iterator<CorrelationKey> ckeys = explicitKeySet.iterator(); subSets.add(new CorrelationKeySet());
__log.debug(" Changing V1 key " + old.toCanonicalString()); CorrelationKeySet newKeySet = new CorrelationKeySet(); newKeySet.add(new CorrelationKey(""+old.getCSetId(), old.getValues())); Selector newSelector = new Selector(sel.idx, sel.plinkInstance, sel.opName,
__log.debug(" Changing V2 key " + selCKey.toCanonicalString()); CorrelationKeySet newKeySet = new CorrelationKeySet(); newKeySet.add(new CorrelationKey(""+selCKey.getCorrelationSetName(), selCKey.getValues())); Selector newSelector = new Selector(sel.idx, sel.plinkInstance, sel.opName,
public boolean migrate(Set<BpelProcess> registeredProcesses, BpelDAOConnection connection) { for (BpelProcess process : registeredProcesses) { __log.debug("Migrating correlators data for process " + process.getConf().getProcessId()); ProcessDAO processDao = connection.getProcess(process.getConf().getProcessId()); for (OPartnerLink plink : process.getOProcess().getAllPartnerLinks()) { if (plink.hasMyRole()) { for (Iterator opI = plink.myRolePortType.getOperations().iterator(); opI.hasNext();) { Operation op = (Operation)opI.next(); CorrelatorDAO corr = processDao.getCorrelator(plink.getName() + "." + op.getName()); // Changing all routes if (corr != null) { for (MessageRouteDAO routeDAO : corr.getAllRoutes()) { CorrelationKey oldKey = routeDAO.getCorrelationKey(); if (oldKey != null) { CorrelationKeySet keySet = new CorrelationKeySet(); keySet.add(oldKey); routeDAO.setCorrelationKeySet(keySet); } } } } } } } return true; } }
CorrelationKeySet keySet = new CorrelationKeySet(); // is empty for the case of the createInstance activity
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; }
try { PickResponseChannel pickResponseChannel = newChannel(PickResponseChannel.class); CorrelationKeySet keySet = new CorrelationKeySet(); PartnerLinkInstance pLinkInstance = _scopeFrame.resolve(_oevent.partnerLink); for( OScope.CorrelationSet cset : _oevent.joinCorrelations ) {