async run({response, params}) {
     const results = await dal.tryCatch(async() => await api.mc.processes.getProcessesForExperiment(params.experiment_id));
     if (results === null) {
         throw new Error(`Unable to retrieve processes for experiment`);
     }
     response.data = results;
 }
 async run({response, params}) {
     const results = await dal.tryCatch(async() => await api.mc.processes.getProcessForProject(params.project_id, params.process_id));
     if (!results) {
         throw new Error(`Unable to retrieve process ${params.process_id} for project ${params.project_id}`);
     }
     response.data = results;
 }
    async run({response, params, user}) {
        let status = await dal.tryCatch(async() => await api.mc.projects.getUsersGlobusUploadStatus(user.id, params.project_id));
        if (status === null) {
            throw new Error(`Unable retrieve globus status for user ${user.id} in project ${params.project_id}`);
        }

        response.data = status;
    }
    async run({response, params, user}) {
        let processType = params.process_type !== "" ? params.process_type : params.name;
        let process = await dal.tryCatch(async() => await api.mc.processes.createProcess(params.project_id, params.experiment_id, params.name, user.id, params.attributes, processType));
        if (!process) {
            throw new Error(`Unable to create process`);
        }

        response.data = process;
    }