public abstract class AbstractUserFilter extends Object implements UserFilter
Constructor and Description |
---|
AbstractUserFilter() |
Modifier and Type | Method and Description |
---|---|
APIAccessor |
getAPIAccessor() |
EngineExecutionContext |
getExecutionContext() |
protected Object |
getInputParameter(String paramName) |
protected <T> T |
getOptinalInputParameter(String paramName) |
protected String |
getStringInputParameter(String paramName) |
void |
setAPIAccessor(APIAccessor apiAccessor) |
void |
setExecutionContext(EngineExecutionContext executionContext) |
void |
setInputParameters(Map<String,Object> parameters)
Set the input parameter for the filter.
|
boolean |
shouldAutoAssignTaskIfSingleResult()
This method make the engine assign automatically the task if the result of
UserFilter.filter(String) is only one
element. |
protected void |
validateStringInputParameterIsNotNulOrEmpty(String paramName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filter, validateInputParameters
public void setInputParameters(Map<String,Object> parameters)
UserFilter
setInputParameters
in interface UserFilter
parameters
- parameters is a map with parameter names and their value.protected Object getInputParameter(String paramName) throws IllegalStateException
IllegalStateException
protected <T> T getOptinalInputParameter(String paramName)
protected void validateStringInputParameterIsNotNulOrEmpty(String paramName) throws ConnectorValidationException
ConnectorValidationException
public boolean shouldAutoAssignTaskIfSingleResult()
UserFilter.filter(String)
is only one
element.
i.e. when the task is filtered only for a single user Default implementation returns trueshouldAutoAssignTaskIfSingleResult
in interface UserFilter
public void setAPIAccessor(APIAccessor apiAccessor)
public void setExecutionContext(EngineExecutionContext executionContext)
public APIAccessor getAPIAccessor()
public EngineExecutionContext getExecutionContext()
Copyright © 2020 Bonitasoft S.A. All rights reserved.