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

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


            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ApplicationInput applicationInput = new ApplicationInput();
            TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
            applicationInput.setTask(taskDetail);
            applicationInput.setTaskId(taskDetail.getTaskId());
            applicationInput.setInputKey(inputKey);
            applicationInput.setInputKeyType(inputType);
            if (value != null){
                applicationInput.setValue(value.toCharArray());
            }

            applicationInput.setMetadata(metadata);

            if (existingInput != null) {
                existingInput.setTask(taskDetail);
                existingInput.setTaskId(taskDetail.getTaskId());
                existingInput.setInputKey(inputKey);
                existingInput.setInputKeyType(inputType);
                if (value != null){
                    existingInput.setValue(value.toCharArray());
                }
View Full Code Here


            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ApplicationOutput applicationOutput = new ApplicationOutput();
            TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
            applicationOutput.setTask(taskDetail);
            applicationOutput.setTaskId(taskDetail.getTaskId());
            applicationOutput.setOutputKey(outputKey);
            applicationOutput.setOutputKeyType(outputType);
            if (value != null){
                applicationOutput.setValue(value.toCharArray());
            }
            applicationOutput.setMetadata(metadata);

            if (existingOutput != null) {
                existingOutput.setTask(taskDetail);
                existingOutput.setTaskId(taskDetail.getTaskId());
                existingOutput.setOutputKey(outputKey);
                existingOutput.setOutputKeyType(outputType);
                if (value != null){
                    existingOutput.setValue(value.toCharArray());
                }
View Full Code Here

            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ApplicationInput applicationInput = new ApplicationInput();
            TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
            applicationInput.setTask(taskDetail);
            applicationInput.setTaskId(taskDetail.getTaskId());
            applicationInput.setInputKey(inputKey);
            applicationInput.setInputKeyType(inputType);
            applicationInput.setValue(value);
            applicationInput.setMetadata(metadata);

            if (existingInput != null) {
                existingInput.setTask(taskDetail);
                existingInput.setTaskId(taskDetail.getTaskId());
                existingInput.setInputKey(inputKey);
                existingInput.setInputKeyType(inputType);
                existingInput.setValue(value);
                existingInput.setMetadata(metadata);
                applicationInput = em.merge(existingInput);
View Full Code Here

            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ApplicationOutput applicationOutput = new ApplicationOutput();
            TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
            applicationOutput.setTask(taskDetail);
            applicationOutput.setTaskId(taskDetail.getTaskId());
            applicationOutput.setOutputKey(outputKey);
            applicationOutput.setOutputKeyType(outputType);
            applicationOutput.setValue(value);
            applicationOutput.setMetadata(metadata);

            if (existingOutput != null) {
                existingOutput.setTask(taskDetail);
                existingOutput.setTaskId(taskDetail.getTaskId());
                existingOutput.setOutputKey(outputKey);
                existingOutput.setOutputKeyType(outputType);
                existingOutput.setValue(value);
                existingOutput.setMetadata(metadata);
                applicationOutput = em.merge(existingOutput);
View Full Code Here

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            QosParam qosParam = new QosParam();
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                qosParam.setTaskId(taskDetailResource.getTaskId());
                qosParam.setTask(taskDetail);
            }
            qosParam.setExpId(experimentResource.getExpID());
            qosParam.setExperiment(experiment);
View Full Code Here

            errorDetail.setErrorID(errorId);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            errorDetail.setExperiment(experiment);
            errorDetail.setExpId(experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                errorDetail.setTask(taskDetail);
                errorDetail.setTaskId(taskDetail.getTaskId());
            }

            if (nodeDetail != null) {
                WorkflowNodeDetail workflowNodeDetail = em.find(WorkflowNodeDetail.class, nodeDetail.getNodeInstanceId());
                errorDetail.setNodeDetails(workflowNodeDetail);
View Full Code Here

            } else {
                scheduling = new Computational_Resource_Scheduling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                scheduling.setTask(taskDetail);
                scheduling.setTaskId(taskDetailResource.getTaskId());
            }
            scheduling.setExpId(experimentResource.getExpID());
            scheduling.setExperiment(experiment);
View Full Code Here

            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            DataTransferDetail dataTransferDetail = new DataTransferDetail();
            TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
            dataTransferDetail.setTransferId(transferId);
            dataTransferDetail.setTask(taskDetail);
            dataTransferDetail.setTaskId(taskDetailResource.getTaskId());
            dataTransferDetail.setCreationTime(creationTime);
            if (transferDescription != null) {
View Full Code Here

            } else {
                dataHandling = new AdvancedInputDataHandling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                dataHandling.setTaskId(taskDetailResource.getTaskId());
                dataHandling.setTask(taskDetail);
            }
            dataHandling.setExpId(experimentResource.getExpID());
            dataHandling.setExperiment(experiment);
View Full Code Here

            }else {
                dataHandling = new AdvancedOutputDataHandling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource !=null){
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                dataHandling.setTaskId(taskDetailResource.getTaskId());
                dataHandling.setTask(taskDetail);
            }

            dataHandling.setExpId(experimentResource.getExpID());
View Full Code Here

TOP

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

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.