/** * Initialize the activity validator. * * @throws Exception Failed to initialize */ public void init() throws Exception { if (!_initialized) { _initialized = true; if (_predicate != null) { _predicate.init(); } if (_eventProcessor != null) { _eventProcessor.init(); } } }
/** * This method initializes the node. * * @throws Exception Failed to initialize the node */ protected void init() throws Exception { if (getPredicate() != null) { getPredicate().init(); } if (getEventProcessor() == null) { throw new Exception("Event Processor has not been configured for node"); } getEventProcessor().init(); if (getEventProcessor().getAsynchronous()) { _handler = new NodeResultHandler(); getEventProcessor().setResultHandler(_handler); } }