Search in sources :

Example 1 with IfCommand

use of com.walmartlabs.concord.runtime.v2.runner.vm.IfCommand in project concord by walmartlabs.

the class IfCompiler method compile.

@Override
public Command compile(CompilerContext context, IfStep step) {
    Command thenCommand = compile(context, step.getThenSteps());
    Command elseCommand = compile(context, step.getElseSteps());
    return new IfCommand(step, thenCommand, elseCommand);
}
Also used : BlockCommand(com.walmartlabs.concord.runtime.v2.runner.vm.BlockCommand) IfCommand(com.walmartlabs.concord.runtime.v2.runner.vm.IfCommand) Command(com.walmartlabs.concord.svm.Command) IfCommand(com.walmartlabs.concord.runtime.v2.runner.vm.IfCommand)

Aggregations

BlockCommand (com.walmartlabs.concord.runtime.v2.runner.vm.BlockCommand)1 IfCommand (com.walmartlabs.concord.runtime.v2.runner.vm.IfCommand)1 Command (com.walmartlabs.concord.svm.Command)1