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

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


        em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        Node_Data nodeData = new Node_Data();
        nodeData.setNode_id(nodeID);
        Workflow_Data workflow_data = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
        nodeData.setWorkflow_Data(workflow_data);
        byte[] inputsByte = null;
        if (inputs!=null) {
      inputsByte = inputs.getBytes();
      nodeData.setInputs(inputsByte);
View Full Code Here


            case WORKFLOW_DATA:
                generator = new QueryGenerator(WORKFLOW_DATA);
//                generator.setParameter(WorkflowDataConstants.EXPERIMENT_ID, experimentID);
                generator.setParameter(WorkflowDataConstants.WORKFLOW_INSTANCE_ID, name);
                q = generator.selectQuery(em);
                Workflow_Data eworkflowData = (Workflow_Data)q.getSingleResult();
                WorkflowDataResource workflowDataResource = (WorkflowDataResource)Utils.getResource(ResourceType.WORKFLOW_DATA, eworkflowData);
                em.getTransaction().commit();
                em.close();
                return workflowDataResource;
            case EXPERIMENT_METADATA:
View Full Code Here

                generator.setParameter("experiment_data", experiment_data);
                q = generator.selectQuery(em);
                results = q.getResultList();
                if (results.size() != 0) {
                    for (Object result : results) {
                        Workflow_Data workflowData = (Workflow_Data) result;
                        WorkflowDataResource workflowDataResource = (WorkflowDataResource)Utils.getResource(ResourceType.WORKFLOW_DATA, workflowData);
                        resourceList.add(workflowDataResource);
                    }
                }
                break;
View Full Code Here

        if(lastUpdatedTime == null){
            java.util.Date date= new java.util.Date();
            lastUpdatedTime = new Timestamp(date.getTime());
        }
        EntityManager em = ResourceUtils.getEntityManager();
        Workflow_Data existingWFData = em.find(Workflow_Data.class, workflowInstanceID);
        em.close();

        em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        Workflow_Data workflowData = new Workflow_Data();
        Experiment_Data expData = em.find(Experiment_Data.class, experimentID);
        workflowData.setExperiment_data(expData);
        workflowData.setWorkflow_instanceID(workflowInstanceID);
        workflowData.setLast_update_time(lastUpdatedTime);
        workflowData.setStart_time(startTime);
        workflowData.setTemplate_name(templateName);
        workflowData.setStatus(status);
        if(existingWFData != null){
            existingWFData.setExperiment_data(expData);
            existingWFData.setLast_update_time(lastUpdatedTime);
            existingWFData.setStart_time(startTime);
            existingWFData.setStatus(status);
View Full Code Here

        em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        Gram_Data gramData = new Gram_Data();
        gramData.setNode_id(nodeID);
        Workflow_Data workflow_data = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
        gramData.setWorkflow_Data(workflow_data);
        gramData.setNode_id(nodeID);
        gramData.setInvoked_host(invokedHost);
        gramData.setLocal_Job_ID(localJobID);
        byte[] bytes = rsl.getBytes();
View Full Code Here

        em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        Node_Data nodeData = new Node_Data();
        nodeData.setNode_id(nodeID);
        Workflow_Data workflow_data = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
        nodeData.setWorkflow_Data(workflow_data);
        byte[] inputsByte = null;
        if (inputs!=null) {
      inputsByte = inputs.getBytes();
      nodeData.setInputs(inputsByte);
View Full Code Here

        em.getTransaction().begin();
        GFac_Job_Data gFacJobData = new GFac_Job_Data();
        Experiment_Data experiment_data = em.find(Experiment_Data.class, experimentDataResource.getExperimentID());
        gFacJobData.setExperiment_data(experiment_data);
        gFacJobData.setExperiment_ID(experimentDataResource.getExperimentID());
        Workflow_Data workflow_data = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
        gFacJobData.setWorkflow_Data(workflow_data);
        gFacJobData.setWorkflow_instanceID(workflowDataResource.getWorkflowInstanceID());
        gFacJobData.setNode_id(nodeID);
        gFacJobData.setApplication_descriptor_ID(applicationDescID);
        gFacJobData.setLocal_Job_ID(localJobID);
        gFacJobData.setService_descriptor_ID(serviceDescID);
        gFacJobData.setHost_descriptor_ID(hostDescID);
        gFacJobData.setJob_data(jobData);
        gFacJobData.setSubmitted_time(submittedTime);
        gFacJobData.setStatus_update_time(statusUpdateTime);
        gFacJobData.setStatus(status);
        gFacJobData.setMetadata(metadata);
        if(existingGfacJobData != null){
            Experiment_Data experiment_data1 = em.find(Experiment_Data.class, experimentDataResource.getExperimentID());
            existingGfacJobData.setExperiment_data(experiment_data1);
            existingGfacJobData.setExperiment_ID(experimentDataResource.getExperimentID());
            Workflow_Data workflow_data1 = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
            existingGfacJobData.setWorkflow_Data(workflow_data1);
            existingGfacJobData.setWorkflow_instanceID(workflowDataResource.getWorkflowInstanceID());
            existingGfacJobData.setNode_id(nodeID);
            existingGfacJobData.setApplication_descriptor_ID(applicationDescID);
            existingGfacJobData.setLocal_Job_ID(localJobID);
View Full Code Here

        Execution_Error execution_error = new Execution_Error();
        execution_error.setNode_id(nodeID);
        Experiment_Data experiment_data = em.find(Experiment_Data.class, experimentDataResource.getExperimentID());
        execution_error.setExperiment_data(experiment_data);
        Workflow_Data workflow_data = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
        execution_error.setExperiment_ID(experiment_data.getExperiment_ID());
        execution_error.setWorkflow_Data(workflow_data);
        execution_error.setWorkflow_instanceID(workflow_data.getWorkflow_instanceID());
        execution_error.setError_code(errorCode);
        execution_error.setError_date(errorTime);
        execution_error.setError_des(errorDes);
        execution_error.setError_msg(errorMsg);
        execution_error.setSource_type(sourceType);
View Full Code Here

TOP

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

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.