Skip to content

krishnakumar85/IntegrationApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integration Application

Quick Start

Create a GUI for your steps in 3 simple steps:

  • Create custom classes inheriting ProcessStep
  • Use PreCondition, ExecuteStep and PostCondition
  • Prepare main

Detailed Steps

  1. Create custom classes inheriting ProcessStep

For example: (MySteps.py)

Class StepOne(ProcessStep):
	def __init(self, stepname, filename):
		self.stepname = stepname # stepname is mandatory and may not be changed. Additional parameters could be added.
		self.filename = filename
  1. Use PreCondition, ExecuteStep and PostCondition

    def PreCondition(self):
    	print "This function is automatically executed to check the necessary requirements to execute the step
    	return 0 # On Success, return 0
    	#return 1 # On Failure, return non-zero
    
    def ExecuteStep(self):
    	print "This function is where the actual work is done."
    	return 0 # On Success, return 0
    	#return 1 # On Failure, return non-zero
    	
    def PostCondition(self):
    	print "Check whether the ExecuteStep worked as expected."
    	return 0 # On Success, return 0
    	#return 1 # On Failure, return non-zero
    
  2. Prepare main

For example: (main.py)

from IntegrationApp import IntegrationApp
from MySteps import StepOne

if __name__ == "__main__":
	process_steps = []
	
	# Instansiating object from Steps and add to process_steps
	parsexls = StepOne("Parse", "suiv.xls")
	process_steps.append(parsexls)
	
	parsecsv = StepOne("Fetch", "install.csv")
	process_steps.append(parsecsv)

	# Start Application and call MainLoop
	app = IntegrationApp(process_steps)
	app.MainLoop()

About

Provide a GUI for a step wise execution.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages