Examples of AssignmentStep


Examples of com.ontology2.haruhi.flows.AssignmentStep

    private void runStep(MavenManagedJar jar, List<String> flowArgs, FlowStep that) throws Exception {
        if(that instanceof JobStep) {
            JobStep jobStep=(JobStep) that;
            this.runJob(jar, jobStep.getStepArgs(local,flowArgs));
        } else if(that instanceof AssignmentStep) {
            AssignmentStep ass=(AssignmentStep) that;
            local=ass.process(local, flowArgs);
        } else {
            throw new RuntimeException("Could not process step of type "+that.getClass());
        }
    }
View Full Code Here

Examples of com.ontology2.haruhi.flows.AssignmentStep

        Map<String, Object> local = Maps.newHashMap();
        int j=0;
        {
            Assert.assertTrue(steps.get(j) instanceof AssignmentStep);
            AssignmentStep that=(AssignmentStep) steps.get(j++);
            local=that.process(local, flowArgs);
        }

        {
            Assert.assertTrue(steps.get(j) instanceof AssignmentStep);
            AssignmentStep that=(AssignmentStep) steps.get(j++);
            local=that.process(local, flowArgs);
        }

        {
            Assert.assertTrue(steps.get(j) instanceof SpringStep);
            SpringStep step0=(SpringStep) steps.get(j++);
View Full Code Here

Examples of org.tod.meta.steps.AssignmentStep

       
        return s;
    }

    private static ProgramStep assignmentFromTOD(TODSession session, ICallerSideEvent event, boolean forward, boolean live) {
        AssignmentStep s = new AssignmentStep();
        IBehaviorInfo behavior = event.getOperationBehavior();
        s.setType(StepType.ASSIGNMENT);
        s.setLive(live);
        s.setMethodInfo(session.getClassInformationProvider().getMethodInfo(behavior));
        int line = TypeUtils.calculateLineNumber(event.getOperationBehavior(), event.getOperationBytecodeIndex());
        s.setLineNumber(line); // TODO
        s.setForward(forward);
        Variable variableFromTOD = MirrorFactory.variableFromTOD(session, event);
        if (!session.getFilter().acceptVariableName(variableFromTOD.getName())) {
            return null;
        }
        s.setVariable(variableFromTOD);
        return s;
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.