public void setCorrelationKey(CorrelationKey ckey) { _hobj.setCorrelationKey(ckey.toCanonicalString()); } }
public void setCorrelationKey(CorrelationKey key) { _selector.setCorrelationKey(key.toCanonicalString()); }
/** * Returns a canonical form of this correlation key set. * * @return */ public String toCanonicalString() { StringBuffer buf = new StringBuffer(); for( CorrelationKey ckey : correlationKeys ) { if( buf.length() > 0 ) { buf.append(","); } buf.append("[").append(escapeRightBracket(ckey.toCanonicalString())).append("]"); } return "@" + VERSION_2 + buf.toString(); }
/** * @see org.apache.ode.bpel.dao.ProcessDAO#findInstance(CorrelationKey) */ @SuppressWarnings("unchecked") public Collection<ProcessInstanceDAO> findInstance(CorrelationKey ckeyValue) { entering("ProcessDaoImpl.findInstance"); Criteria criteria = getSession().createCriteria(HCorrelationSet.class); criteria.add(Expression.eq("scope.instance.process.id",_process.getId())); criteria.add(Expression.eq("value", ckeyValue.toCanonicalString())); criteria.addOrder(Order.desc("scope.instance.created")); return criteria.list(); }
CorrelationKey selCKey = (CorrelationKey) sel.correlationKey; if (selCKey != null) { __log.debug(" Changing V2 key " + selCKey.toCanonicalString());
public void setValue(QName[] names, CorrelationKey values) { entering("CorrelationSetDaoImpl.setValue"); _correlationSet.setValue(values.toCanonicalString()); if (names != null) { if (_correlationSet.getProperties() == null || _correlationSet.getProperties().size() == 0) { for (int m = 0; m < names.length; m++) { HCorrelationProperty prop = new HCorrelationProperty(names[m], values.getValues()[m], _correlationSet); getSession().save(prop); } } else { for (int m = 0; m < names.length; m++) { HCorrelationProperty prop = getProperty(names[m]); if (prop == null) prop = new HCorrelationProperty(names[m], values.getValues()[m], _correlationSet); else prop.setValue(values.getValues()[m]); getSession().save(prop); } } } getSession().update(_correlationSet); }
if (ckeyInt != null) { OScope.CorrelationSet ocset = findCorrelationById(ckeyInt, registeredProcesses, cset.getProcess().getProcessId()); 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 (ckeyInt != null) { OScope.CorrelationSet ocset = findCorrelationById(ckeyInt, registeredProcesses, process.getConf().getProcessId()); 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 (ckeyInt != null) { OScope.CorrelationSet ocset = findCorrelationById(ckeyInt, registeredProcesses, process.getConf().getProcessId()); if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade route " + oldKey.toCanonicalString()); else { corrMsgDAO.setCorrelationKey(new CorrelationKey(ocset.name, oldKey.getValues()));