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

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


   
    public void save() throws RegistryException{
        EntityManager em = null;
        try {
            em = ResourceUtils.getEntityManager();
            NodeInput existingInput = em.find(NodeInput.class, new NodeInput_PK(inputKey, nodeDetailResource.getNodeInstanceId()));
            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            NodeInput nodeInput = new NodeInput();
            WorkflowNodeDetail nodeDetail = em.find(WorkflowNodeDetail.class, nodeDetailResource.getNodeInstanceId());
            nodeInput.setNodeDetails(nodeDetail);
            nodeInput.setNodeId(nodeDetail.getNodeId());
            nodeInput.setInputKey(inputKey);
            nodeInput.setInputKeyType(inputType);
            nodeInput.setValue(value);
            nodeInput.setMetadata(metadata);

            if (existingInput != null){
                existingInput.setNodeDetails(nodeDetail);
                existingInput.setNodeId(nodeDetail.getNodeId());
                existingInput.setInputKey(inputKey);
View Full Code Here

TOP

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

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.