Search in sources :

Example 1 with CorrelationSetDAO

use of org.apache.ode.bpel.dao.CorrelationSetDAO in project carbon-business-process by wso2.

the class InstanceManagementServiceSkeleton method getCorrelationPropertires.

private CorrelationSets_type0 getCorrelationPropertires(ScopeDAO scope) {
    CorrelationSets_type0 correlationSets = new CorrelationSets_type0();
    for (CorrelationSetDAO correlationSetDAO : scope.getCorrelationDTOs()) {
        CorrelationSet_type0 correlationset = new CorrelationSet_type0();
        correlationset.setCsetid(correlationSetDAO.getCorrelationSetId().toString());
        correlationset.setName(correlationSetDAO.getName());
        for (Map.Entry<QName, String> property : correlationSetDAO.getProperties().entrySet()) {
            CorrelationPropertyType prop = new CorrelationPropertyType();
            prop.setCsetid(correlationSetDAO.getCorrelationSetId().toString());
            prop.setPropertyName(property.getKey());
            prop.setString(property.getValue());
            correlationset.addCorrelationProperty(prop);
        }
        correlationSets.addCorrelationSet(correlationset);
    }
    return correlationSets;
}
Also used : CorrelationSet_type0(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CorrelationSet_type0) QName(javax.xml.namespace.QName) CorrelationPropertyType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CorrelationPropertyType) CorrelationSets_type0(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CorrelationSets_type0) CorrelationSetDAO(org.apache.ode.bpel.dao.CorrelationSetDAO) Map(java.util.Map) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 Map (java.util.Map)1 QName (javax.xml.namespace.QName)1 CorrelationSetDAO (org.apache.ode.bpel.dao.CorrelationSetDAO)1 CorrelationPropertyType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CorrelationPropertyType)1 CorrelationSet_type0 (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CorrelationSet_type0)1 CorrelationSets_type0 (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CorrelationSets_type0)1