Package org.apache.airavata.gfac.context

Examples of org.apache.airavata.gfac.context.MessageContext.addParameter()


        MessageContext inMessage = new MessageContext();

        ActualParameter i1 = new ActualParameter();
        i1.getType().changeType(URIParameterType.type);
        ((URIParameterType) i1.getType()).setValue("file:///tmp/ifile1");
        inMessage.addParameter("i1", i1);

        ActualParameter i2 = new ActualParameter();
        i2.getType().changeType(URIParameterType.type);
        ((URIParameterType) i2.getType()).setValue("file:///tmp/ifile2");
        inMessage.addParameter("i2", i2);
View Full Code Here


        inMessage.addParameter("i1", i1);

        ActualParameter i2 = new ActualParameter();
        i2.getType().changeType(URIParameterType.type);
        ((URIParameterType) i2.getType()).setValue("file:///tmp/ifile2");
        inMessage.addParameter("i2", i2);

        ActualParameter i3 = new ActualParameter();
        i2.getType().changeType(URIParameterType.type);
        ((URIParameterType) i2.getType()).setValue("///tmp/ifile2");
        inMessage.addParameter("i3", i2);
View Full Code Here

        inMessage.addParameter("i2", i2);

        ActualParameter i3 = new ActualParameter();
        i2.getType().changeType(URIParameterType.type);
        ((URIParameterType) i2.getType()).setValue("///tmp/ifile2");
        inMessage.addParameter("i3", i2);

        ActualParameter simpleArg = new ActualParameter();
        simpleArg.getType().changeType(StringParameterType.type);
        ((StringParameterType) simpleArg.getType()).setValue("argument1");
        inMessage.addParameter("a1", simpleArg);
View Full Code Here

        inMessage.addParameter("i3", i2);

        ActualParameter simpleArg = new ActualParameter();
        simpleArg.getType().changeType(StringParameterType.type);
        ((StringParameterType) simpleArg.getType()).setValue("argument1");
        inMessage.addParameter("a1", simpleArg);

        ActualParameter nameValueArg = new ActualParameter();
        nameValueArg.getType().changeType(StringParameterType.type);
        ((StringParameterType) nameValueArg.getType()).setValue("name1=value1");
        inMessage.addParameter("nameValueArg", nameValueArg);
View Full Code Here

        inMessage.addParameter("a1", simpleArg);

        ActualParameter nameValueArg = new ActualParameter();
        nameValueArg.getType().changeType(StringParameterType.type);
        ((StringParameterType) nameValueArg.getType()).setValue("name1=value1");
        inMessage.addParameter("nameValueArg", nameValueArg);

        ActualParameter echo_input = new ActualParameter();
        ((StringParameterType) echo_input.getType()).setValue("echo_output=hello");
        inMessage.addParameter("echo_input", echo_input);
View Full Code Here

        ((StringParameterType) nameValueArg.getType()).setValue("name1=value1");
        inMessage.addParameter("nameValueArg", nameValueArg);

        ActualParameter echo_input = new ActualParameter();
        ((StringParameterType) echo_input.getType()).setValue("echo_output=hello");
        inMessage.addParameter("echo_input", echo_input);

        return inMessage;
    }

    protected MessageContext getOutMessageContext() {
View Full Code Here

        MessageContext om1 = new MessageContext();

        // TODO: Aint the output parameters are only the name of the files staged out to the gridftp endpoint?
        ActualParameter o1 = new ActualParameter();
        ((StringParameterType) o1.getType()).setValue("tempfile");
        om1.addParameter("o1", o1);

        ActualParameter o2 = new ActualParameter();
        o2.getType().changeType(URIParameterType.type);

        ((URIParameterType) o2.getType()).setValue("http://path/to/upload");
View Full Code Here

        ActualParameter o2 = new ActualParameter();
        o2.getType().changeType(URIParameterType.type);

        ((URIParameterType) o2.getType()).setValue("http://path/to/upload");
        om1.addParameter("o2", o2);

        return om1;
    }

    @Before
View Full Code Here

        applicationContext.setHostDescription(host);

        MessageContext inMessage = new MessageContext();
        ActualParameter echo_input = new ActualParameter();
        ((StringParameterType) echo_input.getType()).setValue("echo_output=hello");
        inMessage.addParameter("echo_input", echo_input);


        jobExecutionContext.setInMessageContext(inMessage);

        MessageContext outMessage = new MessageContext();
View Full Code Here

        jobExecutionContext.setInMessageContext(inMessage);

        MessageContext outMessage = new MessageContext();
        ActualParameter echo_out = new ActualParameter();
//    ((StringParameterType)echo_input.getType()).setValue("echo_output=hello");
        outMessage.addParameter("echo_output", echo_out);

        jobExecutionContext.setOutMessageContext(outMessage);

    }
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.