inputs: CommandInputParameter[];
outputs: any[];
steps: any[];
+ hints?: ProcessRequirement[];
}
export interface CommandLineTool {
id: string;
inputs: CommandInputParameter[];
outputs: any[];
+ hints?: ProcessRequirement[];
+}
+
+export type ProcessRequirement = GenericProcessRequirement | WorkflowRunnerResources;
+
+export interface GenericProcessRequirement {
+ class: string;
+}
+
+export interface WorkflowRunnerResources {
+ class: 'http://arvados.org/cwl#WorkflowRunnerResources';
+ ramMin?: number;
+ coresMin?: number;
+ keep_cache?: number;
+ acrContainerImage?: string;
}
export type CommandInputParameter =
export const getWorkflowInputs = (workflowDefinition: WorkflowResourceDefinition) => {
if (!workflowDefinition) { return undefined; }
- // const mainWorkflow = workflowDefinition.$graph.find(item => item.class === 'Workflow' && item.id === '#main');
- // return mainWorkflow
- // ? mainWorkflow.inputs
- // : undefined;
return getWorkflow(workflowDefinition)
? getWorkflow(workflowDefinition)!.inputs
: undefined;