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

Examples of org.apache.airavata.persistance.registry.jpa.resources.GramDataResource


        }else {
            if (!isWorkflowInstanceNodePresent(workflowNodeGramData.getWorkflowInstanceId(),workflowNodeGramData.getNodeID(), true)){
                throw new WorkflowInstanceNodeDoesNotExistsException(workflowNodeGramData.getWorkflowInstanceId(),workflowNodeGramData.getNodeID());
            }
            WorkflowDataResource workflowInstance = jpa.getWorker().getWorkflowInstance(workflowNodeGramData.getWorkflowInstanceId());
            GramDataResource gramData;
            if (workflowInstance.isGramDataExists(workflowNodeGramData.getNodeID())){
                gramData = workflowInstance.getGramData(workflowNodeGramData.getNodeID());
            }else{
                gramData = workflowInstance.createGramData(workflowNodeGramData.getNodeID());
            }
            gramData.setInvokedHost(workflowNodeGramData.getInvokedHost());
            gramData.setLocalJobID(workflowNodeGramData.getGramJobID());
            gramData.setRsl(workflowNodeGramData.getRsl());
            gramData.save();
        }
  }
View Full Code Here


        }else {
            if (!isWorkflowInstanceNodePresent(workflowNodeGramData.getWorkflowInstanceId(),workflowNodeGramData.getNodeID(), true)){
                throw new WorkflowInstanceNodeDoesNotExistsException(workflowNodeGramData.getWorkflowInstanceId(),workflowNodeGramData.getNodeID());
            }
            WorkflowDataResource workflowInstance = jpa.getWorker().getWorkflowInstance(workflowNodeGramData.getWorkflowInstanceId());
            GramDataResource gramData;
            if (workflowInstance.isGramDataExists(workflowNodeGramData.getNodeID())){
                gramData = workflowInstance.getGramData(workflowNodeGramData.getNodeID());
            }else{
                gramData = workflowInstance.createGramData(workflowNodeGramData.getNodeID());
            }
            gramData.setInvokedHost(workflowNodeGramData.getInvokedHost());
            gramData.setLocalJobID(workflowNodeGramData.getGramJobID());
            gramData.setRsl(workflowNodeGramData.getRsl());
            gramData.save();
        }
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.persistance.registry.jpa.resources.GramDataResource

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.