Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. # First we need to load a workflow, for demo purposes we have a workflow for testing java programs.
  2. # This workflow is hardcoded into the application.
  3. try load
  4.  
  5. # We have loaded the workflow with the given name and id.
  6. # Lets list all the worflows in the system.
  7. try list -w
  8. # The workflow we create just now appears on this list
  9.  
  10. # Next step, is to create an instance from the workflow using the workflow id
  11. # We specify the course and project and try directory path as instance variables
  12. try create -w <workflow_id> --vars course_name=csci665 project_name=hw1.1 try_dir_path=~/.try
  13.  
  14. # We have created an instance with the above mentioned name and id
  15. # Lets list all the worflow instances in the system.
  16. try list -i
  17. # The workflow instance we create just now appears on this list
  18.  
  19. # Next step, is to look at all the tasks that can be currently executed
  20. # Using the instance_id from the previous step
  21. try tasks -i <instance_id>
  22. # We can see that the create_lab task can be executed
  23.  
  24. # Lets run the create lab task with the following parameters
  25. try run -i <instance_id> -t <create_lab_task_id> --vars given_project_files=Given.java answer_project_files=Answer.java test_project_files=Test.java test_data_files=test1.csv;test2.csv
  26.  
  27. # Again we look at all the tasks that can be currently executed
  28. try tasks -i <instance_id>
  29. # We can see that the publish_lab task can be executed
  30.  
  31. # This task takes a markdown file, converts it to html and copies it to a directory
  32. try run -i <instance_id> -t <publish_lab_task_id> --vars project_description_file_path=HW1-1.md
  33.  
  34. # Again we look at all the tasks that can be currently executed
  35. try tasks -i <instance_id>
  36. # We can see that the student_submission task can be executed
  37. try run -i <instance_id> -t <student_submission_task_id> --vars answer_project_files=Answer.java
  38.  
  39. # We can run this task multiple times
  40. try run -i <instance_id> -t <student_submission_task_id> --vars answer_project_files=Answer.java
  41.  
  42. # Again we look at all the tasks that can be currently executed
  43. try tasks -i <instance_id>
  44. # We can see that the aggregate_results task can be executed
  45.  
  46. # Lets execute this task
  47. try run -i <instance_id> -t <aggregate_results_task_id>
  48.  
  49. # Again we look at all the tasks that can be currently executed
  50. try tasks -i <instance_id>
  51. # We can see that there are no currently available tasks
  52. # We have executed all the tasks in the instance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement