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) |
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
#filter() is only one element. |
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
public boolean shouldAutoAssignTaskIfSingleResult()
#filter()
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 © 2013 BonitaSoft. All Rights Reserved.