@Override public Set<Object> keySet() { throw new FlowableException("unsupported operation on configuration beans"); // List<String> beanNames = // Arrays.asList(beanFactory.getBeanDefinitionNames()); // return new HashSet<Object>(beanNames); }
public FlowableEntityEventImpl(Object entity, FlowableEngineEventType type) { super(type); if (entity == null) { throw new FlowableIllegalArgumentException("Entity cannot be null."); } this.entity = entity; }
public FlowableClassLoadingException(String className, Throwable cause) { super(getExceptionMessageMessage(className, cause), cause); this.className = className; }
protected void checkQueryOk() { if (orderProperty != null) { throw new FlowableIllegalArgumentException("Invalid query: call asc() or desc() after using orderByXX()"); } }
@Override public Collection<Object> values() { throw new FlowableException("unsupported operation on configuration beans"); } }
/** * Creates a new event implementation, part of an execution context. */ public FlowableEventImpl(FlowableEngineEventType type, String executionId, String processInstanceId, String processDefinitionId) { if (type == null) { throw new FlowableIllegalArgumentException("type is null"); } this.type = type; this.executionId = executionId; this.processInstanceId = processInstanceId; this.processDefinitionId = processDefinitionId; }
@Override public Object put(Object key, Object value) { throw new FlowableException("unsupported operation on configuration beans"); }
protected void checkQueryOk() { if (orderProperty != null) { throw new FlowableIllegalArgumentException("Invalid query: call asc() or desc() after using orderByXX()"); } }
protected void rethrowExceptionIfNeeded() throws Error { if (exception instanceof Error) { throw (Error) exception; } else if (exception instanceof RuntimeException) { throw (RuntimeException) exception; } else { throw new FlowableException("exception while executing command " + command, exception); } }
public FlowableEntityExceptionEventImpl(Object entity, FlowableEngineEventType type, Throwable cause) { super(type); if (entity == null) { throw new FlowableIllegalArgumentException("Entity cannot be null."); } this.entity = entity; this.cause = cause; }
@Override public Object remove(Object key) { throw new FlowableException("unsupported operation on configuration beans"); }
@Override public void clear() { throw new FlowableException("can't clear configuration beans"); }
@Override public boolean containsValue(Object value) { throw new FlowableException("can't search values in configuration beans"); }
@Override public Set<Map.Entry<Object, Object>> entrySet() { throw new FlowableException("unsupported operation on configuration beans"); }
@Override public boolean isEmpty() { throw new FlowableException("unsupported operation on configuration beans"); }
@Override public void putAll(Map<? extends Object, ? extends Object> m) { throw new FlowableException("unsupported operation on configuration beans"); }
@Override public int size() { throw new FlowableException("unsupported operation on configuration beans"); }
@Override public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null) { if (wrappedMap.containsKey(property)) { throw new FlowableException("Cannot set value of '" + property + "', it's readonly!"); } } }
protected void assertOperationsNotEmpty() { if (operations.isEmpty()) { throw new FlowableException("Unable to peek empty agenda."); } }
@Override public BusinessCalendar getBusinessCalendar(String businessCalendarRef) { BusinessCalendar businessCalendar = businessCalendars.get(businessCalendarRef); if (businessCalendar == null) { throw new FlowableException("Requested business calendar " + businessCalendarRef + " does not exist. Allowed calendars are " + this.businessCalendars.keySet() + "."); } return businessCalendar; }