#NEWLINE# def makeJob( tool , jobobj ) : #NEWLINE# #INDENT# if ( tool . tool [ 'class' ] == 'Workflow' ) : #NEWLINE# #INDENT# wfjob = CWLWorkflow ( tool , jobobj ) #NEWLINE# followOn = ResolveIndirect ( wfjob . rv ( ) ) #NEWLINE# wfjob . addFollowOn ( followOn ) #NEWLINE# return ( wfjob , followOn ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# job = CWLJob ( tool , jobobj ) #NEWLINE# return ( job , job )