Package step.functions
Class Function
java.lang.Object
step.core.accessors.AbstractIdentifiableObject
step.core.accessors.AbstractOrganizableObject
step.functions.Function
- All Implemented Interfaces:
EnricheableObject
- Direct Known Subclasses:
CompositeFunction
,GeneralScriptFunction
,JMeterFunction
,LocalFunctionPlugin.LocalFunction
,NodeFunction
public class Function
extends step.core.accessors.AbstractOrganizableObject
implements EnricheableObject
This class encapsulates all the configuration parameters of functions (aka Keywords)
which can also be defined on the configuration dialog of Keywords in the UI
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected DynamicValue<Integer>
protected String
protected boolean
protected String
protected boolean
protected jakarta.json.JsonObject
protected boolean
Fields inherited from class step.core.accessors.AbstractOrganizableObject
attributes, NAME, VERSION
Fields inherited from class step.core.accessors.AbstractIdentifiableObject
customFields, ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.JsonObject
boolean
boolean
boolean
boolean
void
setCallTimeout
(DynamicValue<Integer> callTimeout) void
setDescription
(String description) void
setExecuteLocally
(boolean executeLocally) Defines if the function has to be executed on a local tokenvoid
setHtmlTemplate
(String customTemplateContent) Sets the HTML code to be used as template when editing the function in the plan editorvoid
setManaged
(boolean managed) void
setSchema
(jakarta.json.JsonObject schema) Sets the JSON schema to be used to validate the function's input at execution timevoid
setTokenSelectionCriteria
(Map<String, String> tokenSelectionCriteria) Defines additional selection criteria of agent token on which the function should be executedvoid
setUseCustomTemplate
(boolean customTemplate) Methods inherited from class step.core.accessors.AbstractOrganizableObject
addAttribute, getAttribute, getAttributes, hasAttribute, setAttributes
Methods inherited from class step.core.accessors.AbstractIdentifiableObject
addCustomField, computeCustomFieldIfAbsent, equals, getCustomField, getCustomField, getCustomFields, getId, hashCode, setCustomFields, setId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface step.core.objectenricher.EnricheableObject
addAttribute, getAttribute, getAttributes, setAttributes
-
Field Details
-
callTimeout
-
schema
protected jakarta.json.JsonObject schema -
executeLocally
protected boolean executeLocally -
tokenSelectionCriteria
-
managed
protected boolean managed -
useCustomTemplate
protected boolean useCustomTemplate -
htmlTemplate
-
description
-
APPLICATION
- See Also:
-
-
Constructor Details
-
Function
public Function()
-
-
Method Details
-
getTokenSelectionCriteria
-
setTokenSelectionCriteria
Defines additional selection criteria of agent token on which the function should be executed- Parameters:
tokenSelectionCriteria
- a map containing the additional selection criteria as key-value pairs
-
isExecuteLocally
public boolean isExecuteLocally()- Returns:
- if the function has to be executed on a local token
-
setExecuteLocally
public void setExecuteLocally(boolean executeLocally) Defines if the function has to be executed on a local token- Parameters:
executeLocally
- true if the function has to be executed on a local token
-
getCallTimeout
-
setCallTimeout
- Parameters:
callTimeout
- the call timeout of the function in ms
-
getSchema
public jakarta.json.JsonObject getSchema() -
setSchema
public void setSchema(jakarta.json.JsonObject schema) Sets the JSON schema to be used to validate the function's input at execution time- Parameters:
schema
- the JSON schema of the function. See https://json-schema.org/ for more details concerning JSON schema.
-
requiresLocalExecution
public boolean requiresLocalExecution() -
isManaged
public boolean isManaged() -
setManaged
public void setManaged(boolean managed) -
isUseCustomTemplate
public boolean isUseCustomTemplate() -
setUseCustomTemplate
public void setUseCustomTemplate(boolean customTemplate) -
getHtmlTemplate
-
setHtmlTemplate
Sets the HTML code to be used as template when editing the function in the plan editor- Parameters:
customTemplateContent
- the HTML template
-
getDescription
-
setDescription
-