Package org.apache.ode.bpel.dao

Examples of org.apache.ode.bpel.dao.CorrelationSetDAO


    XmlDataDAO var2 = child1.getVariable("var2");
    var2.set(DOMUtils.stringToDOM("<testData>testData</testData>"));
    var2.setProperty("key1", "prop1");
    var2.setProperty("key2", "prop2");
   
    CorrelationSetDAO cs1 = child1.getCorrelationSet("TestCorrelationSet1");
    cs1.setValue(names,key1);
   
    PartnerLinkDAO pl1 = child1.createPartnerLink(1, "Test PartnerLink1", "MyRole1", "PartnerRole1");
    pl1.setMyEPR(DOMUtils.stringToDOM("<testEPR>testMyEPR</testEPR>"));
    pl1.setMyRoleServiceName(new QName(TEST_NS,"testRoleService"));
    pl1.setMySessionId("TestMySessionID");
View Full Code Here


  public Collection<ScopeDAO> getChildScopes() {
    return _childScopes;
  }

  public CorrelationSetDAO getCorrelationSet(String corrSetName) {
    CorrelationSetDAO ret = null;
    for (CorrelationSetDAO csElement : _correlationSets) {
      if ( csElement.getName().equals(corrSetName)) ret = csElement;
    }
   
    if ( ret == null ) {
View Full Code Here

        _retryCount = retryCount;
    }
   
    public boolean isCorrelationInitialized(CorrelationSet correlationSet) {
        ScopeDAO scopeDAO = _dao.getScope(correlationSet.getScopeId());
        CorrelationSetDAO cs = scopeDAO.getCorrelationSet(correlationSet.getName());

        return cs.getValue() != null;
    }
View Full Code Here

        }
    }

    public CorrelationKey readCorrelation(CorrelationSet cset) {
        ScopeDAO scopeDAO = _dao.getScope(cset.getScopeId());
        CorrelationSetDAO cs = scopeDAO.getCorrelationSet(cset.getName());
        return cs.getValue();
    }
View Full Code Here

                throw new FaultException(cset.getOwner().getConstantsModel().getDuplicateInstance());
            }
        }         
       
        ScopeDAO scopeDAO = _dao.getScope(cset.getScopeId());
        CorrelationSetDAO cs = scopeDAO.getCorrelationSet(cset.getName());
        cs.setValue(propNames, correlation);

        CorrelationSetWriteEvent cswe = new CorrelationSetWriteEvent(cset.getName(), correlation);
        cswe.setScopeId(cset.getScopeId());
        sendEvent(cswe);
    }
View Full Code Here

    /**
     * @see org.apache.ode.bpel.dao.ScopeDAO#getCorrelationSet(java.lang.String)
     */
    public CorrelationSetDAO getCorrelationSet(String corrSetName) {
        CorrelationSetDAO corr = _correlations.get(corrSetName);

        if (corr == null) {
            corr = new CorrelationSetDaoImpl(corrSetName, this);
            _correlations.put(corrSetName, corr);
        }
View Full Code Here

    public Collection<ScopeDAO> getChildScopes() {
        return _childScopes;
    }

    public CorrelationSetDAO getCorrelationSet(String corrSetName) {
        CorrelationSetDAO ret = null;
        for (CorrelationSetDAO csElement : _correlationSets) {
            if ( csElement.getName().equals(corrSetName)) ret = csElement;
        }

        if ( ret == null ) {
View Full Code Here

            assertNotNull(childS.getCorrelationSets());
            assertTrue(childS.getCorrelationSets().size() > 0);
            assertNotNull(childS.getCorrelationSet("TestCorrelationSet1"));

            // Assert CorrelationSetDAO
            CorrelationSetDAO cs = childS.getCorrelationSet("TestCorrelationSet1");
            assertEquals(cs.getName(),"TestCorrelationSet1");
            assertNotNull(cs.getProperties());
            assertTrue(cs.getProperties().size() > 0);
            assertSame(cs.getScope(),childS);
            assertNotNull(cs.getValue());
            assertEquals(cs.getProperties().get(new QName(TEST_NS,"name1")),"key1");


            // Assert PartnerLinkDAO
            assertNotNull(spl.getMyEPR());
            assertEquals(spl.getMyRoleName(),"MyRole1");
View Full Code Here

        XmlDataDAO var2 = child1.getVariable("var2");
        var2.set(DOMUtils.stringToDOM("<testData>testData</testData>"));
        var2.setProperty("key1", "prop1");
        var2.setProperty("key2", "prop2");

        CorrelationSetDAO cs1 = child1.getCorrelationSet("TestCorrelationSet1");
        cs1.setValue(names,key1);

        PartnerLinkDAO pl1 = child1.createPartnerLink(1, "Test PartnerLink1", "MyRole1", "PartnerRole1");
        pl1.setMyEPR(DOMUtils.stringToDOM("<testEPR>testMyEPR</testEPR>"));
        pl1.setMyRoleServiceName(new QName(TEST_NS,"testRoleService"));
        pl1.setMySessionId("TestMySessionID");
View Full Code Here

    /**
     * @see BpelRuntimeContext#isCorrelationInitialized(org.apache.ode.bpel.runtime.CorrelationSetInstance)
     */
    public boolean isCorrelationInitialized(CorrelationSetInstance correlationSet) {
        ScopeDAO scopeDAO = _dao.getScope(correlationSet.scopeInstance);
        CorrelationSetDAO cs = scopeDAO.getCorrelationSet(correlationSet.declaration.name);

        return cs.getValue() != null;
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.dao.CorrelationSetDAO

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.