Optimization Server - Run Checker Task
This task runs the checker task in the Optimization server.
@Bean
public ScriptedTaskDescription checker() {
ScriptedTaskDescription task = new ScriptedTaskDescription("CheckerTask", "Optimization server - Run Checker task");
task.setDescription("Run the checker task in the Optimization server");
VariableAccessExpression scenario = VariableAccessExpression.of(SCENARIO);
task.getScript()
.addStatement(AskInputStatement.of(scenario.getVariableName(), true, JobInputType.scenarioId(WRITABLE)))
.addStatement(ExecuteOptimizationServerTaskStatement
.forTaskId(StringExpression.of("CheckerTask"))
.usingOnDemandContext(StringExpression.of("small"))
.withInput(INPUT_COLLECTOR, ScenarioDataExpression.of(scenario))
.withOutputScenario(OUTPUT_COLLECTOR, scenario, StringExpression.of("GeneIssue"))
);
return task;
}