@@ -0,0 +1,2488 @@
+//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%0A// This file is a part of the 'esoco-business' project.%0A// Copyright 2016 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//%09  http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%0Apackage de.esoco.process;%0A%0Aimport de.esoco.process.step.InteractionFragment;%0A%0Aimport java.util.Collection;%0A%0Aimport org.obrel.core.RelationType;%0A%0A%0A/********************************************************************%0A * A parameter wrapper with additional functions for enum values.%0A *%0A * @author eso%0A */%0Apublic class EnumParameter%3CE extends Enum%3CE%3E%3E%0A%09extends ParameterBase%3CE, EnumParameter%3CE%3E%3E%0A%7B%0A%09//~ Constructors -----------------------------------------------------------%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09public EnumParameter(%0A%09%09InteractionFragment rFragment,%0A%09%09RelationType%3CE%3E%09%09rParamType)%0A%09%7B%0A%09%09super(rFragment, rParamType);%0A%09%7D%0A%0A%09//~ Methods ----------------------------------------------------------------%0A%0A%09/***************************************%0A%09 * Disables certain values of the parameter enum.%0A%09 *%0A%09 * @param  rDisabledElements The elements to disable%0A%09 *%0A%09 * @return This parameter instance%0A%09 */%0A%09@SuppressWarnings(%22unchecked%22)%0A%09public EnumParameter%3CE%3E disable(E... rDisabledElements)%0A%09%7B%0A%09%09fragment().disableElements(type(), rDisabledElements);%0A%0A%09%09return this;%0A%09%7D%0A%0A%09/***************************************%0A%09 * Disables certain values of the parameter enum.%0A%09 *%0A%09 * @param  rDisabledElements A collection of the elements to disable%0A%09 *%0A%09 * @return This parameter instance%0A%09 */%0A%09public EnumParameter%3CE%3E disable(Collection%3CE%3E rDisabledElements)%0A%09%7B%0A%09%09fragment().disableElements(type(), rDisabledElements);%0A%0A%09%09return this;%0A%09%7D%0A%0A%09/***************************************%0A%09 * Enables all enum values.%0A%09 *%0A%09 * @return This parameter instance%0A%09 */%0A%09public EnumParameter%3CE%3E enableAll()%0A%09%7B%0A%09%09return disable();%0A%09%7D%0A%7D%0A

Add support for arbitrary client events