Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # First we need to load a workflow, for demo purposes we have a workflow for testing java programs.
- # This workflow is hardcoded into the application.
- try load
- # We have loaded the workflow with the given name and id.
- # Lets list all the worflows in the system.
- try list -w
- # The workflow we create just now appears on this list
- # Next step, is to create an instance from the workflow using the workflow id
- # We specify the course and project and try directory path as instance variables
- try create -w <workflow_id> --vars course_name=csci665 project_name=hw1.1 try_dir_path=~/.try
- # We have created an instance with the above mentioned name and id
- # Lets list all the worflow instances in the system.
- try list -i
- # The workflow instance we create just now appears on this list
- # Next step, is to look at all the tasks that can be currently executed
- # Using the instance_id from the previous step
- try tasks -i <instance_id>
- # We can see that the create_lab task can be executed
- # Lets run the create lab task with the following parameters
- 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
- # Again we look at all the tasks that can be currently executed
- try tasks -i <instance_id>
- # We can see that the publish_lab task can be executed
- # This task takes a markdown file, converts it to html and copies it to a directory
- try run -i <instance_id> -t <publish_lab_task_id> --vars project_description_file_path=HW1-1.md
- # Again we look at all the tasks that can be currently executed
- try tasks -i <instance_id>
- # We can see that the student_submission task can be executed
- try run -i <instance_id> -t <student_submission_task_id> --vars answer_project_files=Answer.java
- # We can run this task multiple times
- try run -i <instance_id> -t <student_submission_task_id> --vars answer_project_files=Answer.java
- # Again we look at all the tasks that can be currently executed
- try tasks -i <instance_id>
- # We can see that the aggregate_results task can be executed
- # Lets execute this task
- try run -i <instance_id> -t <aggregate_results_task_id>
- # Again we look at all the tasks that can be currently executed
- try tasks -i <instance_id>
- # We can see that there are no currently available tasks
- # We have executed all the tasks in the instance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement