initial working test wf

This commit is contained in:
2007-09-03 15:46:45 +00:00
parent bfb039328c
commit 2fdd9aaf77
2 changed files with 48 additions and 74 deletions

View File

@@ -12,19 +12,19 @@ class TestWorkflow (workflow.Workflow):
ident = 'test'
description = 'This workflow currently serves as a general testing workflow.'
def __init__(self, app):
workflow.Workflow.__init__(self, app)
def __init__(self):
workflow.Workflow.__init__(self)
load = workflow.Stage('load', 'Test Data')
load.add_function(TestDataFunction())
load.add_task(TestDataTask)
self.add_stage(load)
class TestDataTask(workflow.Task):
title = "Test data"
name = "Test data"
def __init__(self):
workflow.Task.__init__(self)
def __init__(self, input):
workflow.Task.__init__(self, input)
def run(self):
logger.log('notice', 'Injecting foo test data')