-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-workflow.aq
1 lines (1 loc) · 4.69 KB
/
test-workflow.aq
1
{"config":{"title":"Test Workflow","description":"A workflow that does very little, but can be used to test most of Aquarium's import and export functionality","copyright":"University of Washington","version":"0.0.1","authors":[{"name":"Eric Klavins","affiliation":"University of Washington"}],"maintainer":{"name":"Eric Klavins","email":"[email protected]"},"acknowledgements":null,"github":{"user":"klavins","repo":"test-workflow","organization":"klavinslab"},"keywords":["Aquarium","Protocol","Test","Widget"],"aquadoc_version":"1.0.0","aquarium_version":"2.5.0 alpha"},"components":[{"sample_types":[{"id":1,"name":"Widget","description":"A test sample type","created_at":"2018-12-17T13:09:32.000-08:00","updated_at":"2018-12-17T13:09:32.000-08:00","field_types":[{"id":1,"parent_id":1,"name":"Color","ftype":"string","choices":null,"array":false,"required":false,"created_at":"2018-12-17T13:09:32.000-08:00","updated_at":"2018-12-17T13:09:32.000-08:00","parent_class":"SampleType","role":null,"part":null,"routing":null,"preferred_operation_type_id":null,"preferred_field_type_id":null,"allowable_field_types":[],"sample_types":[],"object_types":[]},{"id":2,"parent_id":1,"name":"Parent","ftype":"sample","choices":null,"array":false,"required":false,"created_at":"2018-12-17T13:09:32.000-08:00","updated_at":"2018-12-17T13:09:32.000-08:00","parent_class":"SampleType","role":null,"part":null,"routing":null,"preferred_operation_type_id":null,"preferred_field_type_id":null,"allowable_field_types":[{"id":1,"field_type_id":2,"sample_type_id":1,"object_type_id":null,"created_at":"2018-12-17T13:09:32.000-08:00","updated_at":"2018-12-17T13:09:32.000-08:00","sample_type":{"id":1,"name":"Widget","description":"A test sample type","created_at":"2018-12-17T13:09:32.000-08:00","updated_at":"2018-12-17T13:09:32.000-08:00"}}],"sample_types":["Widget"],"object_types":[null]}]}],"object_types":[{"id":1,"name":"Widget Stock","description":"A long term storage container for a widget","min":0,"max":1,"handler":"sample_container","safety":"No safety information","cleanup":"No cleanup information","data":"No data","vendor":"No vendor information","created_at":"2018-12-17T13:10:58.000-08:00","updated_at":"2018-12-17T13:10:58.000-08:00","unit":"Widget","cost":0.01,"release_method":"return","release_description":"","sample_type_id":1,"image":"","prefix":"M20","rows":null,"columns":null,"sample_type_name":"Widget"},{"id":2,"name":"Widget Aliquot","description":"A small amount of widget","min":0,"max":1,"handler":"sample_container","safety":"No safety information","cleanup":"No cleanup information","data":"No data","vendor":"No vendor information","created_at":"2018-12-17T13:11:36.000-08:00","updated_at":"2018-12-17T13:11:36.000-08:00","unit":"Widget","cost":0.01,"release_method":"return","release_description":"","sample_type_id":1,"image":"","prefix":"M20","rows":null,"columns":null,"sample_type_name":"Widget"}],"operation_type":{"name":"Make Widget Aliquot","category":"Test","deployed":false,"on_the_fly":false,"field_types":[{"ftype":"sample","role":"input","name":"Widget Stock","sample_types":["Widget"],"object_types":["Widget Stock"],"part":false,"array":false,"routing":"W","preferred_operation_type_id":null,"preferred_field_type_id":null,"choices":null},{"ftype":"sample","role":"output","name":"Widget Aliquot","sample_types":["Widget"],"object_types":["Widget Aliquot"],"part":false,"array":false,"routing":"W","preferred_operation_type_id":null,"preferred_field_type_id":null,"choices":null}],"protocol":"# This is a protocol used to test Aquarium's import / export functionality.\n\nneeds \"Test/WidgetLib\"\n\nclass Protocol\n \n include WidgetLib\n\n def main\n\n operations.retrieve.make\n\n show do\n title \"Dilute Widgets\"\n table operations.start_table\n .input_item(\"Widget Stock\")\n .output_item(\"Widget Aliquot\")\n .custom_column(heading: \"Amount from Stock (µL)\") { |op| 10 }\n .custom_column(heading: \"Amount of Water (µL)\") { |op| 90 } \n .end_table\n end\n\n operations.store\n \n say_thanks\n\n {}\n\n end\n\nend\n","precondition":"def precondition(_op)\n true\nend","cost_model":"def cost(_op)\n { labor: 1, materials: 0.10 }\nend","documentation":"This operation type is used to make a Widget aliquot from a Widget stock by taking 10 uL from\nthe stock and diluting it with 90 uL of water to make the aliquot. ","timing":null}},{"library":{"name":"WidgetLib","category":"Test","code_source":"# A module with very little in it, used to test Aquarium's import/export features.\nmodule WidgetLib\n \n # Show the user a page that says thanks!\n def say_thanks\n show do\n title \"Thanks!\"\n end\n end\n \nend"}}]}