Package com.jboss.jbossnetwork.product.jbpm.handlers

Examples of com.jboss.jbossnetwork.product.jbpm.handlers.SoftwareValue


        jbossServerDir += File.separator; // Just to make sure
        context.setVariable(ContextVariables.JBOSS_SERVER_DIR, jbossServerDir);

        // The workflow will reference values inside of this object for substitution
        // Ultimately, we should parse out the workflows to use the domain object directly
        SoftwareValue softwareValue = resourcePackageDetailsToSoftwareValue(packageDetails);
        context.setVariable(ContextVariables.SOFTWARE, softwareValue);

        // Perform the workflow
        try {
            processInstance.signal();
View Full Code Here


     * @return object mirroring the domain's package representation usable for substitutions into the workflow
     */
    private SoftwareValue resourcePackageDetailsToSoftwareValue(ResourcePackageDetails pkg) {
        Configuration extraProperties = pkg.getExtraProperties();

        SoftwareValue softwareValue = new SoftwareValue();

        softwareValue.setDownloadUrl(pkg.getLocation());
        softwareValue.setFilename(pkg.getFileName());
        softwareValue.setFileSize(pkg.getFileSize());
        softwareValue.setInstructionCompatibilityVersion(safeGet(extraProperties, "instructionCompatibilityVersion"));
        softwareValue.setIssueReference(safeGet(extraProperties, "jiraId"));
        softwareValue.setLicenseName(pkg.getLicenseName());
        softwareValue.setLicenseVersion(pkg.getLicenseVersion());
        softwareValue.setLongDescription(pkg.getLongDescription());
        softwareValue.setMD5(pkg.getMD5());
        softwareValue.setSHA256(pkg.getSHA256());
        softwareValue.setShortDescription(pkg.getShortDescription());
        softwareValue.setTitle(pkg.getName());

        return softwareValue;
    }
View Full Code Here

TOP

Related Classes of com.jboss.jbossnetwork.product.jbpm.handlers.SoftwareValue

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.