Class FunctionRunner
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.FunctionRunner
-
-
Field Summary
Fields Modifier and Type Field Description static String
FUNC_NAME_POSTCONDITIONS
Function name postconditionsstatic String
FUNC_NAME_PRECONDITIONS
Function name preconditionstatic String
PARAM_NAME_ACTIVITY_DEFINITION_ID
Parameter name activityDefinitionIdstatic String
PARAM_NAME_NEXT_ACTIVITY_DEFINITION_ID
Parameter name nextActivityDefinitionIdstatic String
PARAM_NAME_PRINTABLE_TEMPLATE_INSTANCE
Parameter name printableTemplateInstancestatic String
PARAM_NAME_PROCESS_INSTANCE_ID
Parameter name processInstanceId
-
Constructor Summary
Constructors Constructor Description FunctionRunner(String functionName, String paramNames, String script, ElementScript elementScript, Consumer<FunctionRunnerException> consumerFuncRunnerEx, HashMap<String,Object> funcRunnerParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFunctionName()
List<String>
getParametersNames()
String
getScript()
ScriptQueryExecutor
getScriptQueryExecutor()
Object
run(List parameters)
void
setFunctionName(String functionName)
void
setParametersNames(List<String> parametersNames)
void
setScript(String script)
void
setScriptQueryExecutor(ScriptQueryExecutor scriptQueryExecutor)
-
-
-
Field Detail
-
FUNC_NAME_PRECONDITIONS
public static final String FUNC_NAME_PRECONDITIONS
Function name precondition- See Also:
- Constant Field Values
-
FUNC_NAME_POSTCONDITIONS
public static final String FUNC_NAME_POSTCONDITIONS
Function name postconditions- See Also:
- Constant Field Values
-
PARAM_NAME_PROCESS_INSTANCE_ID
public static final String PARAM_NAME_PROCESS_INSTANCE_ID
Parameter name processInstanceId- See Also:
- Constant Field Values
-
PARAM_NAME_ACTIVITY_DEFINITION_ID
public static final String PARAM_NAME_ACTIVITY_DEFINITION_ID
Parameter name activityDefinitionId- See Also:
- Constant Field Values
-
PARAM_NAME_NEXT_ACTIVITY_DEFINITION_ID
public static final String PARAM_NAME_NEXT_ACTIVITY_DEFINITION_ID
Parameter name nextActivityDefinitionId- See Also:
- Constant Field Values
-
PARAM_NAME_PRINTABLE_TEMPLATE_INSTANCE
public static final String PARAM_NAME_PRINTABLE_TEMPLATE_INSTANCE
Parameter name printableTemplateInstance- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FunctionRunner
public FunctionRunner(String functionName, String paramNames, String script, ElementScript elementScript, Consumer<FunctionRunnerException> consumerFuncRunnerEx, HashMap<String,Object> funcRunnerParams)
-
-
Method Detail
-
getFunctionName
public String getFunctionName()
-
setFunctionName
public void setFunctionName(String functionName)
-
getScript
public String getScript()
-
setScript
public void setScript(String script)
-
getScriptQueryExecutor
public ScriptQueryExecutor getScriptQueryExecutor()
- Specified by:
getScriptQueryExecutor
in interfaceRunner
-
setScriptQueryExecutor
public void setScriptQueryExecutor(ScriptQueryExecutor scriptQueryExecutor)
- Specified by:
setScriptQueryExecutor
in interfaceRunner
-
-