|
| 1 | +#!/usr/bin/env cwl-runner |
| 2 | +cwlVersion: v1.1 |
| 3 | +class: Workflow |
| 4 | +label: Workflow that executes the SBG L1 Workflow |
| 5 | + |
| 6 | +$namespaces: |
| 7 | + cwltool: http://commonwl.org/cwltool# |
| 8 | + |
| 9 | +requirements: |
| 10 | + SubworkflowFeatureRequirement: {} |
| 11 | + ScatterFeatureRequirement: {} |
| 12 | + InlineJavascriptRequirement: {} |
| 13 | + StepInputExpressionRequirement: {} |
| 14 | + MultipleInputFeatureRequirement: {} |
| 15 | + |
| 16 | + |
| 17 | +## Inputs to the e2e rebinning, not to each applicaiton within the workflow |
| 18 | +inputs: |
| 19 | + |
| 20 | + # For CMR Search Step |
| 21 | + input_cmr_collection_name: string |
| 22 | + input_cmr_search_start_time: string |
| 23 | + input_cmr_search_stop_time: string |
| 24 | + |
| 25 | + # catalog inputs |
| 26 | + input_unity_dapa_api: string |
| 27 | + input_unity_dapa_client: string |
| 28 | + |
| 29 | + #for exemple-app step |
| 30 | + input_summary_table_filename: string |
| 31 | + input_example_argument_int: int |
| 32 | + input_example_argument_float: float |
| 33 | + input_example_argument_string: string |
| 34 | + input_example_argument_bool: boolean |
| 35 | + input_example_argument_empty: string, null |
| 36 | + |
| 37 | + # For unity data stage-out step, unity catalog |
| 38 | + output_collection_id: string |
| 39 | + output_data_bucket: string |
| 40 | + |
| 41 | +outputs: |
| 42 | + results: |
| 43 | + type: File |
| 44 | + outputSource: example-app/stage_out_result |
| 45 | + |
| 46 | +steps: |
| 47 | + cmr-step: |
| 48 | + run: http://awslbdockstorestack-lb-1429770210.us-west-2.elb.amazonaws.com:9998/api/ga4gh/trs/v2/tools/%23workflow%2Fdockstore.org%2Fmike-gangl%2Fcmr-trial/versions/2/PLAIN-CWL/descriptor/%2FDockstore.cwl |
| 49 | + in: |
| 50 | + cmr_collection : input_cmr_collection_name |
| 51 | + cmr_start_time: input_cmr_search_start_time |
| 52 | + cmr_stop_time: input_cmr_search_stop_time |
| 53 | + out: [results] |
| 54 | + example-app: |
| 55 | + run: http://awslbdockstorestack-lb-1429770210.us-west-2.elb.amazonaws.com:9998/api/ga4gh/trs/v2/tools/%23workflow%2Fdockstore.org%2Fedwinsarkissian%2Funity-example-application/versions/56/PLAIN-CWL/descriptor/%2Fworkflow.cwl |
| 56 | + in: |
| 57 | + # input configuration for stage-in |
| 58 | + # edl_password_type can be either 'BASE64' or 'PARAM_STORE' or 'PLAIN' |
| 59 | + # README available at https://github.com/unity-sds/unity-data-services/blob/main/docker/Readme.md |
| 60 | + stage_in: |
| 61 | + source: [cmr-step/results] |
| 62 | + valueFrom: | |
| 63 | + ${ |
| 64 | + return { |
| 65 | + download_type: 'DAAC', |
| 66 | + stac_json: self, |
| 67 | + edl_password: '/sps/processing/workflows/edl_password', |
| 68 | + edl_username: '/sps/processing/workflows/edl_username', |
| 69 | + edl_password_type: 'PARAM_STORE', |
| 70 | + downloading_keys: 'data', |
| 71 | + log_level: '20' |
| 72 | + }; |
| 73 | + } |
| 74 | + #input configuration for example process |
| 75 | + # Here we map the inputs to the workflow into the example-process inputs |
| 76 | + parameters: |
| 77 | + source: [output_collection_id] |
| 78 | + valueFrom: | |
| 79 | + ${ |
| 80 | + return { |
| 81 | + summary_table_filename: input_summary_table_filename, |
| 82 | + example_argument_int: input_example_argument_int, |
| 83 | + example_argument_float: input_example_argument_float, |
| 84 | + example_argument_string: input_example_argument_string, |
| 85 | + example_argument_bool: input_example_argument_bool, |
| 86 | + example_argument_empty: input_example_argument_empty, |
| 87 | + output_collection: self[0] |
| 88 | + }; |
| 89 | + } |
| 90 | + #input configuration for stage-out |
| 91 | + # readme available at https://github.com/unity-sds/unity-data-services/blob/main/docker/Readme.md |
| 92 | + stage_out: |
| 93 | + source: [output_data_bucket, output_collection_id] |
| 94 | + valueFrom: | |
| 95 | + ${ |
| 96 | + return { |
| 97 | + aws_access_key_id: '', |
| 98 | + aws_region: 'us-west-2', |
| 99 | + aws_secret_access_key: '', |
| 100 | + aws_session_token: '', |
| 101 | + collection_id: self[1], |
| 102 | + staging_bucket: self[0], |
| 103 | + log_level: '20' |
| 104 | + }; |
| 105 | + } |
| 106 | + out: [stage_out_results] |
| 107 | + data-catalog: |
| 108 | + #run: catalog/catalog.cwl |
| 109 | + run: http://awslbdockstorestack-lb-1429770210.us-west-2.elb.amazonaws.com:9998/api/ga4gh/trs/v2/tools/%23workflow%2Fdockstore.org%2Fmike-gangl%2Fcatalog-trial/versions/7/PLAIN-CWL/descriptor/%2FDockstore.cwl |
| 110 | + in: |
| 111 | + unity_username: |
| 112 | + valueFrom: "/sps/processing/workflows/unity_username" |
| 113 | + unity_password: |
| 114 | + valueFrom: "/sps/processing/workflows/unity_password" |
| 115 | + password_type: |
| 116 | + valueFrom: "PARAM_STORE" |
| 117 | + unity_client_id: input_unity_dapa_client |
| 118 | + unity_dapa_api: input_unity_dapa_api |
| 119 | + uploaded_files_json: example-app/stage_out_results |
| 120 | + out: [results] |
0 commit comments