Ejemplo n.º 1
0
 def getWorkflow(self, wft=None):
     if wft==None: wft = self.getWorkflowTemplate()
     user = self.getUser()
     wf = Workflow.findByName(SESSION, "test_workflow", user)
     logfilename = "./test_workflow.log.txt"
     if wf == None:
         wf = Workflow("test_workflow", wft, user, logfilename)
     return wf
Ejemplo n.º 2
0
def stopWorkflow(wfid):
    wf = Workflow.findByID(SESSION, wfid)
    return wf.stopWorkflow(SESSION)
Ejemplo n.º 3
0
def startWorkflow(wfid, logfilename, address, workflowname):
    wf = Workflow.findByID(SESSION, wfid)
    return wf.startWorkflow(SESSION, logfilename, address, workflowname)