public abstract class FunctionTermResolver extends Object implements org.kuali.rice.krms.api.engine.TermResolver<Object>
Constructor and Description |
---|
FunctionTermResolver(List<String> orderedInputParams,
Set<String> parameterNames,
String output) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
executeFunction(String serviceName,
String methodName,
Map<String,Object> resolvedPrereqs,
Map<String,String> resolvedParameters)
This method execute the function/method and return 'true' or 'false'
|
protected List<Object> |
extractParamValues(Map<String,Object> resolvedPrereqs,
Map<String,String> resolvedParameters) |
int |
getCost() |
org.kuali.rice.krms.api.repository.function.FunctionDefinition |
getFunctionTerm()
Gets the functionTerm attribute.
|
List<String> |
getOrderedInputParams() |
String |
getOutput()
Returns the name of the function needs to be executed as part of the Term
|
Set<String> |
getParameterNames() |
Set<String> |
getPrerequisites() |
Object |
resolve(Map<String,Object> resolvedPrereqs,
Map<String,String> parameters)
This method executes the stored function and returns the result.
|
void |
setFunctionTerm(org.kuali.rice.krms.api.repository.function.FunctionDefinition functionTerm)
Sets the functionTerm attribute value.
|
public List<String> getOrderedInputParams()
public Set<String> getPrerequisites()
getPrerequisites
in interface org.kuali.rice.krms.api.engine.TermResolver<Object>
public String getOutput()
getOutput
in interface org.kuali.rice.krms.api.engine.TermResolver<Object>
TermResolver.getOutput()
public Set<String> getParameterNames()
getParameterNames
in interface org.kuali.rice.krms.api.engine.TermResolver<Object>
public int getCost()
getCost
in interface org.kuali.rice.krms.api.engine.TermResolver<Object>
public Object resolve(Map<String,Object> resolvedPrereqs, Map<String,String> parameters)
resolve
in interface org.kuali.rice.krms.api.engine.TermResolver<Object>
TermResolver.resolve(java.util.Map, java.util.Map)
protected abstract Object executeFunction(String serviceName, String methodName, Map<String,Object> resolvedPrereqs, Map<String,String> resolvedParameters)
resolvedPrereqs
- protected List<Object> extractParamValues(Map<String,Object> resolvedPrereqs, Map<String,String> resolvedParameters)
public org.kuali.rice.krms.api.repository.function.FunctionDefinition getFunctionTerm()
public void setFunctionTerm(org.kuali.rice.krms.api.repository.function.FunctionDefinition functionTerm)
functionTerm
- The functionTerm to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.