Package org.apche.ode.bpel.evar.ExternalVariableModule

Examples of org.apche.ode.bpel.evar.ExternalVariableModule.Locator


        if (evar == null) {
            // Should not happen if constructor is working.
            throw new BpelEngineException("InternalError: reference to unknown external variable " + externalVariableId);
        }
       
        Locator locator = new Locator(externalVariableId, _pid,iid, reference);
        Value newval;
        newval = evar._engine.readValue(locator );
        if (newval == null)
            return null;
        return newval;
View Full Code Here


        if (evar == null) {
            // Should not happen if constructor is working.
            throw new BpelEngineException("InternalError: reference to unknown external variable " + externalVariableId);
        }
       
        Locator locator = new Locator(externalVariableId,_pid,iid,reference);
        Value newval = new Value(locator,val,null);
        newval = evar._engine.writeValue(newval );

        return newval;
    }
View Full Code Here

   
    @Test
    public void testInitWriteValue() throws Exception {
        testConfigure();
       
        Locator locator = new Locator("evar1",_pid,_iid);
        Value value = new Value(locator, _el1, null);
        value = _engine.writeValue(value);
        assertNotNull(value);
        assertNotNull(value.locator);
        System.out.println(DOMUtils.domToString(value.locator.reference));
View Full Code Here

    @Test
    public void testWriteUpdate() throws Exception {
        testConfigure();
       
        Locator locator = new Locator("evar1",_pid,_iid);
        Value value = new Value(locator, _el1, null);
        value = _engine.writeValue(value);
        String domstr = DOMUtils.domToStringLevel2(value.value);
        Value newvalue = new Value(value.locator,DOMUtils.stringToDOM(domstr.replaceAll("<bar>bar</bar>", "<bar>boohoo</bar>")),null);
        _engine.writeValue(newvalue);
View Full Code Here

    }
   
    @Test
    public void testRead() throws Exception {
        testConfigure();
        Locator locator = new Locator("evar1",_pid,_iid);
        Value value = new Value(locator, _el1, null);
        value = _engine.writeValue(value);
       
       
        Value readVal = _engine.readValue(value.locator);
View Full Code Here

TOP

Related Classes of org.apche.ode.bpel.evar.ExternalVariableModule.Locator

Copyright © 2018 www.massapicom. 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.