Class ConditionBlockExecutor<T extends ComponentInputs>
java.lang.Object
com.codebarrel.automation.api.component.branch.condition.ConditionBlockExecutor<T>
- All Implemented Interfaces:
ComponentExecutor
public class ConditionBlockExecutor<T extends ComponentInputs>
extends Object
implements ComponentExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionConditionBlockExecutor(ComponentInputsFactory componentInputsFactory, RuleComponentProvider ruleComponentProvider) -
Method Summary
Modifier and TypeMethodDescriptionexecute(ComponentContext context, ComponentInputs inputs, AuditComponentChangeBuilder audit) Executes an action, give the provided context and inputs.
-
Constructor Details
-
ConditionBlockExecutor
@Inject public ConditionBlockExecutor(ComponentInputsFactory componentInputsFactory, RuleComponentProvider ruleComponentProvider)
-
-
Method Details
-
execute
public ComponentExecutionResult execute(ComponentContext context, ComponentInputs inputs, AuditComponentChangeBuilder audit) Description copied from interface:ComponentExecutorExecutes an action, give the provided context and inputs. Implementations can pick and chose what inputs they wish to handle. Implementations can choose if they want to stop execution of the component chain by returning an appropriate execution reuls. Implementations can also add additional inputs for the next component in the chain.- Specified by:
executein interfaceComponentExecutor<T extends ComponentInputs>- Parameters:
context- The context to execute this componentinputs- Inputs needed by the component- Returns:
- the outputs of this executor (inputs with additional stuff) and what should happen next.
-