Package org.apache.ode.bpel.evar.ExternalVariableModule

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


        if (evar == null) {
            // Should not happen if constructor is working.
            throw new BpelEngineException("InternalError: reference to unknown external variable " + variable.extVar.externalVariableId);
        }

        Locator locator = new Locator(variable.extVar.externalVariableId, _pid,iid, reference);
        Value newval;
        newval = evar._engine.readValue(((OElementVarType) variable.type).elementType, 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 " + variable.extVar.externalVariableId);
        }

        Locator locator = new Locator(variable.extVar.externalVariableId,_pid,iid,reference);
        Value newval = new Value(locator,val,null);
        newval = evar._engine.writeValue(((OElementVarType) variable.type).elementType, newval);

        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 " + variable.getExternalId());
        }
       
        Locator locator = new Locator(variable.getExternalId(), _pid,iid, reference);
        Value newval;
        newval = evar._engine.readValue(variable.getElementType(), 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 " + variable.getExternalId());
        }
       
        Locator locator = new Locator(variable.getExternalId(),_pid,iid,reference);
        Value newval = new Value(locator,val,null);
        newval = evar._engine.writeValue(variable.getElementType(), 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(_varType, 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(_varType, 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(_varType, 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(_varType, value);
       
        Value readVal = _engine.readValue(_varType, value.locator);
       
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(_varType, 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(_varType, 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(_varType, 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(_varType, value);

        Value readVal = _engine.readValue(_varType, value.locator);
View Full Code Here

TOP

Related Classes of org.apache.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.