Package step.artefacts.handlers
Class CallFunctionHandler
- java.lang.Object
-
- step.core.artefacts.handlers.ArtefactHandler<CallFunction,CallFunctionReportNode>
-
- step.artefacts.handlers.CallFunctionHandler
-
public class CallFunctionHandler extends ArtefactHandler<CallFunction,CallFunctionReportNode>
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamicJsonObjectResolver
dynamicJsonObjectResolver
protected FunctionAccessor
functionAccessor
protected FunctionExecutionService
functionExecutionService
protected FunctionLocator
functionLocator
protected ReportNodeAttachmentManager
reportNodeAttachmentManager
-
Fields inherited from class step.core.artefacts.handlers.ArtefactHandler
context, FILE_VARIABLE_PREFIX, FORCE_PERSIST_BEFORE, logger, TEC_EXECUTION_REPORTNODES_PERSISTAFTER, TEC_EXECUTION_REPORTNODES_PERSISTBEFORE, TEC_EXECUTION_REPORTNODES_PERSISTONLYNONPASSED
-
-
Constructor Summary
Constructors Constructor Description CallFunctionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
callChildrenArtefacts(CallFunctionReportNode node, CallFunction testArtefact)
CallFunctionReportNode
createReportNode_(ReportNode parentNode, CallFunction testArtefact)
Creates theReportNode
corresponding to the provided artefactprotected void
createReportSkeleton_(CallFunctionReportNode parentNode, CallFunction testArtefact)
protected void
execute_(CallFunctionReportNode node, CallFunction testArtefact)
Execute the provided artefact and report the execution to the provided report nodevoid
init(ExecutionContext context)
-
Methods inherited from class step.core.artefacts.handlers.ArtefactHandler
createReportSkeleton, createWorkArtefact, createWorkArtefact, createWorkArtefact, delegateCreateReportSkeleton, delegateCreateReportSkeleton, delegateExecute, delegateExecute, excludePropertyChildren, execute, fail, failWithException, failWithException, failWithException, filterPropertyChildren, getBindings, getChildren, getChildren, initProperties, isInSession, releaseTokens, removeReportNode
-
-
-
-
Field Detail
-
functionExecutionService
protected FunctionExecutionService functionExecutionService
-
functionAccessor
protected FunctionAccessor functionAccessor
-
reportNodeAttachmentManager
protected ReportNodeAttachmentManager reportNodeAttachmentManager
-
dynamicJsonObjectResolver
protected DynamicJsonObjectResolver dynamicJsonObjectResolver
-
functionLocator
protected FunctionLocator functionLocator
-
-
Method Detail
-
init
public void init(ExecutionContext context)
- Overrides:
init
in classArtefactHandler<CallFunction,CallFunctionReportNode>
-
createReportSkeleton_
protected void createReportSkeleton_(CallFunctionReportNode parentNode, CallFunction testArtefact)
- Specified by:
createReportSkeleton_
in classArtefactHandler<CallFunction,CallFunctionReportNode>
-
execute_
protected void execute_(CallFunctionReportNode node, CallFunction testArtefact) throws Exception
Description copied from class:ArtefactHandler
Execute the provided artefact and report the execution to the provided report node- Specified by:
execute_
in classArtefactHandler<CallFunction,CallFunctionReportNode>
- Parameters:
node
- theReportNode
corresponding to the artefacttestArtefact
- theAbstractArtefact
to be executed- Throws:
Exception
-
callChildrenArtefacts
protected void callChildrenArtefacts(CallFunctionReportNode node, CallFunction testArtefact)
-
createReportNode_
public CallFunctionReportNode createReportNode_(ReportNode parentNode, CallFunction testArtefact)
Description copied from class:ArtefactHandler
Creates theReportNode
corresponding to the provided artefact- Specified by:
createReportNode_
in classArtefactHandler<CallFunction,CallFunctionReportNode>
- Parameters:
parentNode
- the parentReportNode
testArtefact
- the artefact to create the node for- Returns:
-
-