projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20452: don't set path if currentItemUuid is not a collection
[arvados-workbench2.git]
/
src
/
models
/
workflow.ts
diff --git
a/src/models/workflow.ts
b/src/models/workflow.ts
index 12f253acfe47ec80e50dc65450b84962e1a02f58..e85dce7a6a02e697fe9b674630b530b9599d09cc 100644
(file)
--- a/
src/models/workflow.ts
+++ b/
src/models/workflow.ts
@@
-4,6
+4,7
@@
import { Resource, ResourceKind } from "./resource";
import { safeLoad } from 'js-yaml';
import { Resource, ResourceKind } from "./resource";
import { safeLoad } from 'js-yaml';
+import { CommandOutputParameter } from "cwlts/mappings/v1.0/CommandOutputParameter";
export interface WorkflowResource extends Resource {
kind: ResourceKind.WORKFLOW;
export interface WorkflowResource extends Resource {
kind: ResourceKind.WORKFLOW;
@@
-152,11
+153,18
@@
export const getWorkflowInputs = (workflowDefinition: WorkflowResourceDefinition
: undefined;
};
: undefined;
};
+export const getWorkflowOutputs = (workflowDefinition: WorkflowResourceDefinition) => {
+ if (!workflowDefinition) { return undefined; }
+ return getWorkflow(workflowDefinition)
+ ? getWorkflow(workflowDefinition)!.outputs
+ : undefined;
+};
+
export const getInputLabel = (input: CommandInputParameter) => {
return `${input.label || input.id.split('/').pop()}`;
};
export const getInputLabel = (input: CommandInputParameter) => {
return `${input.label || input.id.split('/').pop()}`;
};
-export const getI
nputId = (input: CommandIn
putParameter) => {
+export const getI
OParamId = (input: CommandInputParameter | CommandOut
putParameter) => {
return `${input.id.split('/').pop()}`;
};
return `${input.id.split('/').pop()}`;
};