Package org.switchyard.common.io.resource

Examples of org.switchyard.common.io.resource.ResourceDetail


                        org.kie.api.io.Resource kieResource = kieResources.newUrlResource(locationURL);
                        if (kieResource != null) {
                            org.kie.api.io.ResourceType kieResourceType = convertResourceType(syResource.getType());
                            if (kieResourceType != null) {
                                kieResource.setResourceType(kieResourceType);
                                ResourceDetail syResourceDetail = syResource.getDetail();
                                if (syResourceDetail != null) {
                                    org.kie.api.io.ResourceConfiguration kieResourceConfiguration = null;
                                    if (org.kie.api.io.ResourceType.DTABLE.equals(kieResourceType)) {
                                        String inputType = getInputType(syResourceDetail, DecisionTableInputType.XLS.toString());
                                        DecisionTableConfiguration dtc = KnowledgeBuilderFactory.newDecisionTableConfiguration();
View Full Code Here


            Assert.assertEquals("bar.dsl", dslResource.getLocation());
            Assert.assertEquals(ResourceType.valueOf("DSL"), dslResource.getType());
            ResourceModel dtableResource = resources.getResources().get(2);
            Assert.assertEquals("foobar.xls", dtableResource.getLocation());
            Assert.assertEquals(ResourceType.valueOf("DTABLE"), dtableResource.getType());
            ResourceDetail dtableDetail = dtableResource.getDetail();
            Assert.assertEquals("XLS", dtableDetail.getInputType());
            Assert.assertEquals("MySheet", dtableDetail.getWorksheetName());
            /* SWITCHYARD-1662
            Assert.assertEquals(true, dtableDetail.isUsingExternalTypes());
            */
        } else if (REMOTEJMS_XML.equals(xml) || REMOTEREST_XML.equals(xml)) {
            Assert.assertNull(container);
View Full Code Here

            Assert.assertEquals("foobar.bpmn", bpmn2Resource.getLocation());
            Assert.assertEquals(ResourceType.valueOf("BPMN2"), bpmn2Resource.getType());
            ResourceModel dtableResource = resources.getResources().get(1);
            Assert.assertEquals("foobar.xls", dtableResource.getLocation());
            Assert.assertEquals(ResourceType.valueOf("DTABLE"), dtableResource.getType());
            ResourceDetail dtableDetail = dtableResource.getDetail();
            Assert.assertEquals("XLS", dtableDetail.getInputType());
            Assert.assertEquals("MySheet", dtableDetail.getWorksheetName());
            /* SWITCHYARD-1662
            Assert.assertEquals(true, dtableDetail.isUsingExternalTypes());
            */
        } else if (REMOTEJMS_XML.equals(xml) || REMOTEREST_XML.equals(xml)) {
            Assert.assertNull(container);
View Full Code Here

TOP

Related Classes of org.switchyard.common.io.resource.ResourceDetail

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.