Examples of JaxbProcessDefinition


Examples of org.kie.services.client.serialization.jaxb.impl.process.JaxbProcessDefinition

                // possibly because the deployment is being modified and not fully un/deployed.. (un/deploy*ing*)
                logger.debug( "Unable to retrieve process definition for process '{}' in deployment '{}': {}",
                        processId, deploymentId, e.getMessage(), e);
                continue;
            }
            JaxbProcessDefinition jaxbProcDef = convertProcAssetDescToJaxbProcDef(processAssetDesc);
            Map<String, String> variables;
            try {
                variables = bpmn2DataService.getProcessVariables(deploymentId, processId);
            } catch( Exception e) {
                // possibly because the deployment is being modified and not fully un/deployed.. (un/deploy*ing*)
                logger.debug( "Unable to retrieve process definition data for process '{}' in deployment '{}': {}",
                        processId, deploymentId, e.getMessage(), e);
                continue;
            }
            jaxbProcDef.setVariables(variables);
            procDefList.add(jaxbProcDef);

            if( procDefList.size() == maxNumResults) {
                // pagination parameters indicate that no more than current list is needed
                break;
View Full Code Here

Examples of org.kie.services.client.serialization.jaxb.impl.process.JaxbProcessDefinition

           throw iae;
        }
    }
 
    protected JaxbProcessDefinition convertProcAssetDescToJaxbProcDef(ProcessDefinition procAssetDesc) {
        JaxbProcessDefinition jaxbProcDef = new JaxbProcessDefinition();
        jaxbProcDef.setDeploymentId(((ProcessAssetDesc)procAssetDesc).getDeploymentId());
        jaxbProcDef.setForms(((ProcessAssetDesc)procAssetDesc).getForms());
        jaxbProcDef.setId(procAssetDesc.getId());
        jaxbProcDef.setName(procAssetDesc.getName());
        jaxbProcDef.setPackageName(procAssetDesc.getPackageName());
        jaxbProcDef.setVersion(procAssetDesc.getVersion());
       
        return jaxbProcDef;
    }
View Full Code Here

Examples of org.kie.services.client.serialization.jaxb.impl.process.JaxbProcessDefinition

    // Rest methods --------------------------------------------------------------------------------------------------------------
    @Override
    public Response getProcessDefinitionInfo(String processId) {
        ProcessDefinition processAssetDescList = runtimeDataService.getProcessesByDeploymentIdProcessId(deploymentId, processId);
        JaxbProcessDefinition jaxbProcDef = convertProcAssetDescToJaxbProcDef(processAssetDescList);
        Map<String, String> variables = bpmn2DataService.getProcessVariables(deploymentId, processId);
        jaxbProcDef.setVariables(variables);
        return createCorrectVariant(jaxbProcDef, headers);
    }
View Full Code Here

Examples of org.kie.services.client.serialization.jaxb.impl.process.JaxbProcessDefinition

                "1.999.23.Final", "org.test.proc",
                "RuleFlow", KnowledgeType.PROCESS.toString(),
                "org.test.proc",
                "org.test.proc:procs:1.999.Final");
       
        JaxbProcessDefinition jaxbProcDef = new JaxbProcessDefinition();
        jaxbProcDef.setDeploymentId(assetDesc.getDeploymentId());
        jaxbProcDef.setId(assetDesc.getId());
        jaxbProcDef.setName(assetDesc.getName());
        jaxbProcDef.setPackageName(assetDesc.getPackageName());
        jaxbProcDef.setVersion(assetDesc.getVersion());
        Map<String, String> forms = new HashMap<String, String>();
        forms.put( "locationForm", "GPS: street: post code: city: state: land: planet: universe: ");
        jaxbProcDef.setForms(forms);
      
        JaxbProcessDefinition copyJaxbProcDef = testRoundTrip(jaxbProcDef);
        ComparePair.compareObjectsViaFields(jaxbProcDef, copyJaxbProcDef);
    }
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.