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; }
public void setCorrelationKey(CorrelationKey ckey) { keySet = new CorrelationKeySet(); keySet.add(ckey); } }
/** * Test whether a process state is one of the completed states, e.g., * {@link #STATE_COMPLETED_OK} or {@link #STATE_COMPLETED_WITH_FAULT}. * * @param state the state of the process * @return <code>true</code> if the process is finished. */ public static boolean isFinished(short state){ return !(canExecute(state) || state == STATE_SUSPENDED); } /**
public CorrelationKeySet getCorrelationKeySet() { return new CorrelationKeySet(correlationKeySet); } public void setCorrelationKeySet(CorrelationKeySet correlationKeySet) {
public void setCorrelationKeySet(CorrelationKeySet correlationKeySet) { this.correlationKeySet = correlationKeySet == null ? null : correlationKeySet.toCanonicalString(); } public Integer getRetryCount() {
private static String getDateWithoutOp(String ddf) { return Filter.getDateWithoutOp(ddf); }
void process(BpelEventFilter f, Restriction<String> r) { try { f._tstampRestrictions.add(new Restriction<Date>(r.originalKey, r.op, ISO8601DateParser.parse(r.value))); } catch (ParseException e) { String errmsg = __msgs.msgISODateParseErr(TIMESTAMP.name(), r.value); throw new IllegalArgumentException(errmsg, e); } } };
/** * The restriction for filter "{0}" must follow the ISO-8601 date or date/time * standard (yyyyMMddhhmmss); "{1}" does not follow this form. */ public String msgISODateParseErr(String filterKey, String restriction) { return this.format("The restriction for filter \"{0}\" must follow the" + " ISO-8601 date or date/time standard (yyyyMMddhhmmss);" + "\"{1}\" does not follow this form.", filterKey, restriction); }
@Override protected void process(FilterKeysOp key, Restriction<String> rest) { key.process(this, rest.op, rest.value); } }
/** * Restores the state by parsing the given canonical form of correlation key set. * * @param canonicalForm canonical form of correlation key set */ public CorrelationKeySet(String canonicalForm) { restore(canonicalForm); }
/** * Initializes properly the InstanceFilter attributes by pre-parsing the * filter and orderKeys strings and setting the limit. A limit inferior than * or equal to 0 is ignored. * * @param filter */ public BpelEventFilter(String filter, int limit) { init(filter); this.limit = limit; }
@Override protected Criteria parseKey(String keyVal) { return Criteria.valueOf(keyVal); }
@Override protected Criteria[] getFilterKeys() { return Criteria.values(); }
@Override protected Criteria[] getFilterKeys() { return Criteria.values(); }
@Override protected void process(Criteria key, Restriction<String> rest) { key.process(this, rest); }
@Override protected FilterKeysOp parseKey(String keyVal) { return FilterKeysOp.valueOf(keyVal); }
@Override protected FilterKeysOp[] getFilterKeys() { return FilterKeysOp.values(); }
@Override protected void process(Criteria key, Restriction<String> rest) { key.process(this, rest.originalKey, rest.op, rest.value); }
public void setCorrelationKey(CorrelationKey key) { _ckeySet = new CorrelationKeySet(); _ckeySet.add(key); }
/** * The filter "{0}" is not recognized; try one of {1}. */ public String msgUnrecognizedFilterKey(String filterKey, Collection<String> filterKeys) { return this.format("The filter \"{0}\" is not recognized; try one of {1}.", filterKey, filterKeys); }