Skip to content

Commit

Permalink
Add feature to set default wf engine
Browse files Browse the repository at this point in the history
  • Loading branch information
suecharo committed Feb 2, 2022
1 parent 9f2a2c4 commit 47226ff
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/components/workflows/ExecuteCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,29 @@ const options: ThisTypedComponentOptionsWithRecordProps<
this.wfEngine = this.wfEngines[0]
}
// set default wfEngine
if (this.workflow.type === 'CWL') {
this.wfEngine =
this.wfEngines.find((wfEngine) => {
return wfEngine.includes('cwltool')
}) || ''
} else if (this.workflow.type === 'WDL') {
this.wfEngine =
this.wfEngines.find((wfEngine) => {
return wfEngine.includes('cromwell')
}) || ''
} else if (this.workflow.type === 'NFL') {
this.wfEngine =
this.wfEngines.find((wfEngine) => {
return wfEngine.includes('nextflow')
}) || ''
} else if (this.workflow.type === 'SMK') {
this.wfEngine =
this.wfEngines.find((wfEngine) => {
return wfEngine.includes('snakemake')
}) || ''
}
if (this.workflow.preRegisteredWorkflowAttachment.length) {
this.wfAttachment.fetch.urls.pop()
this.wfAttachment.fetch.names.pop()
Expand Down

0 comments on commit 47226ff

Please sign in to comment.