Package org.apache.airavata.persistance.registry.jpa.model

Examples of org.apache.airavata.persistance.registry.jpa.model.NodeOutput


   
    public void save() throws RegistryException{
        EntityManager em = null;
        try {
            em = ResourceUtils.getEntityManager();
            NodeOutput existingOutput = em.find(NodeOutput.class, new NodeOutput_PK(outputKey, nodeDetailResource.getNodeInstanceId()));
            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            NodeOutput nodeOutput = new NodeOutput();
            WorkflowNodeDetail nodeDetail = em.find(WorkflowNodeDetail.class, nodeDetailResource.getNodeInstanceId());
            nodeOutput.setNode(nodeDetail);
            nodeOutput.setNodeId(nodeDetail.getNodeId());
            nodeOutput.setOutputKey(outputKey);
            nodeOutput.setOutputKeyType(outputType);
            nodeOutput.setValue(value);
            nodeOutput.setMetadata(metadata);

            if (existingOutput != null) {
                existingOutput.setNode(nodeDetail);
                existingOutput.setNodeId(nodeDetail.getNodeId());
                existingOutput.setOutputKey(outputKey);
View Full Code Here

TOP

Related Classes of org.apache.airavata.persistance.registry.jpa.model.NodeOutput

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.