Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.broadinstitute.picard.workflows.sfrazer1
- import java.io.File;
- import org.broadinstitute.zamboni.server.util.log.Log
- import org.broadinstitute.zamboni.server.util.ZamboniDef._
- import org.broadinstitute.zamboni.server.request.RequestTrait
- import org.broadinstitute.zamboni.server.workflowcreation.{FirehoseBaseTask, FirehoseBaseWorkflow}
- import org.broadinstitute.zamboni.server.property._
- class FHTestWorkflow extends FirehoseBaseWorkflow {
- val workflowName = "FHTestWorkflow"
- def createSteps(request: RequestTrait) = {
- var first = new FHFirst( "fh_first" )
- var second = new FHSecond( "fh_second", first )
- second dependsOn first
- addRootSteps(first)
- }
- }
- protected class FHFirst (stepName:String)
- extends FirehoseBaseTask(stepName) {
- def command: List[String] = {
- Log.info("log message from " + name)
- List("python", taskPath("script.py"), name, "param2")
- }
- }
- protected class FHSecond (stepName:String, first:FHFirst)
- extends FirehoseBaseTask(stepName) {
- def command: List[String] = {
- Log.info("FHSecond outputPath: " + outputPath("report.html"))
- List("python", taskPath("script.py"), first.outputPath("report.html"))
- }
- }
Add Comment
Please, Sign In to add comment