Examples of toExternalForm()


Examples of org.drools.common.DisconnectedFactHandle.toExternalForm()

            if (this.returnObject) {
                ((ExecutionResultImpl) ((KnowledgeCommandContext) context).getExecutionResults()).getResults().put(this.outIdentifier,
                        object);
            }
            ((ExecutionResultImpl) ((KnowledgeCommandContext) context).getExecutionResults()).getFactHandles().put(this.outIdentifier,
                    disconectedHandle.toExternalForm());
        }

        return disconectedHandle;
    }
View Full Code Here

Examples of org.drools.runtime.rule.FactHandle.toExternalForm()

                            list );

        String outXml = execContent( "testFactHandleReturn.in.1" );

        assertXMLEqual( getContent( "testFactHandleReturn.expected.1",
                                    fh.toExternalForm() ),
                        outXml );

        ExecutionResults result = unmarshalOutXml( outXml,
                                                   ExecutionResults.class );
View Full Code Here

Examples of org.eclipse.ecf.core.identity.ID.toExternalForm()

    }
  }

  public void testCreateFromExternalForm() throws Exception {
    final ID id1 = createID();
    final String externalForm = id1.toExternalForm();
    final ID id2 = IDFactory.getDefault().createID(id1.getNamespace(),
        externalForm);
    assertTrue(id1.equals(id2));
  }
}
View Full Code Here

Examples of org.jboss.as.controller.descriptions.ModelDescriptionConstants.URL.toExternalForm()

                        throw new FileNotFoundException("Missing the EAR at [" + urlString + "]");
                    }
                    contentItem.get(PATH).set(urlString);
                    contentItem.get(ARCHIVE).set(false);
                } else {
                    String urlString = url.toExternalForm();
                    contentItem.get(URL).set(urlString);
                }

                op.get(CONTENT).add(contentItem);
View Full Code Here

Examples of org.jdesktop.wonderland.common.AssetURI.toExternalForm()

     * the success or failure information in the asset. Returns the asset
     * upon success, and null upon failure.
     */
    private Asset loadAssetFromCache(Asset asset, String originalChecksum) {
        AssetURI assetURI = asset.getAssetURI();
        String uriString = assetURI.toExternalForm();
        String checksum = asset.getChecksum();

        // Attempt to load the asset from the cache. If it fails, then
        // we set the failure information and notify any listeners and
        // return.
View Full Code Here

Examples of org.jdesktop.wonderland.common.ModuleURI.toExternalForm()

        String path = assetURI.getRelativePathInModule();

        ChecksumList moduleChecksums = cachedModule.getModuleChecksums();
        if (moduleChecksums == null) {
            logger.warning("Unable to locate checksum information for " +
                    assetURI.toExternalForm());
            return null;
        }

        Checksum checksum = moduleChecksums.getChecksumMap().get(path);
        if (checksum == null) {
View Full Code Here

Examples of org.kie.api.builder.ReleaseId.toExternalForm()

                    if (kModule != null) {
                        ReleaseId releaseId = kModule.getReleaseId();
                        kieModules.put(releaseId, kModule);

                        log.debug( "Discovered classpath module " + releaseId.toExternalForm() );

                        kieRepository.addKieModule(kModule);
                    }

                } catch ( Exception exc ) {
View Full Code Here

Examples of org.kie.api.runtime.rule.FactHandle.toExternalForm()

        ksession.update(atomicFH, value);
        ksession.fireAllRules();
       
        assertEquals( 2,
                list.size() );
        String externalForm = atomicFH.toExternalForm();
       
        ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(ksession.getId(), kbase, null, env);
       
        atomicFH = ksession.execute(CommandFactory.fromExternalFactHandleCommand(externalForm));
       
View Full Code Here

Examples of org.kie.builder.GAV.toExternalForm()

                GAV gav = kModule.getGAV();
                kJars.put( gav,
                           kModule );

                log.debug( "Discovered classpath module " + gav.toExternalForm() );
               
                kr.addKieModule(kModule);

            } catch ( Exception exc ) {
                log.error( "Unable to build index of kmodule.xml url=" + url.toExternalForm() + "\n" + exc.getMessage() );
View Full Code Here

Examples of org.kie.builder.ReleaseId.toExternalForm()

                InternalKieModule kModule = fetchKModule(url, fixedURL);

                ReleaseId releaseId = kModule.getReleaseId();
                kieModules.put(releaseId, kModule);

                log.debug( "Discovered classpath module " + releaseId.toExternalForm() );
               
                kr.addKieModule(kModule);

            } catch ( Exception exc ) {
                log.error( "Unable to build index of kmodule.xml url=" + url.toExternalForm() + "\n" + exc.getMessage() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.