This post will try to explain the general life-cycle of an application in WSO2 AppFactory. WSO2 AppFactory is a place where multiple project teams can collaboratively create run and manage enterprise applications[1]. With WSO2 AppFactory users can create an complex application and push it to production within a matter of couple of hours.
If you go to WSO2 AppFactory and create an application it will do several operations that generates the resources needed for your application such as
These handlers will be responsible for the operations mentioned above. Figure 2 is about the flow of this Application Creation process.
When the application is created trunk version will get created in the repository. Next step would be to create a new version from the trunk version to promote it to next stages.
When you click the create branch it will trigger same kind of flow and will create the new version and new build jobs.
Once you create a new version then you can promote this version to next stages (Development -> Testing -> Production). When you promote it will deploy the artifacts to next stages.
[1] http://wso2.com/cloud/app-factory/
[2] http://wdfdo1986.blogspot.com/2015/07/wso2-app-factory-developing-new.html
Figure 1 - App Cloud Create Application Page |
If you go to WSO2 AppFactory and create an application it will do several operations that generates the resources needed for your application such as
- Create Repository
- Generate Sample Code for the Application
- Create Build Job
- Create Issue Tracker Project
- Deploy initial artifact in to PAAS artifact repository
- etc..
When you hit create application it will create an instance of the application RXT installed in WSO2 AppFactory and then will call a bpel which is hosted in the BPS. Any one can edit this bpel to add their workflow in to it. Currently this will just trigger the AF service to trigger on creation event of Application Event Handlers. There are set of Application Event Handlers registered in AF. You can develop a new Application Event Handler class and add it to an OSGI bundle and copy to following location and start AF and that new handler will get invoked.
And you can configure the order of the handlers by setting the priority of the handler by setting priority in the AppFactory configuration placed in following location.
I will explain this in detail in my next post [2].
$APPFACTORY_HOME/repository/components/dropins
And you can configure the order of the handlers by setting the priority of the handler by setting priority in the AppFactory configuration placed in following location.
$APPFACTORY_HOME/repository/conf/appfactory/appfactoy.xml
These handlers will be responsible for the operations mentioned above. Figure 2 is about the flow of this Application Creation process.
Figure 2 : Create Application Flow |
When the application is created trunk version will get created in the repository. Next step would be to create a new version from the trunk version to promote it to next stages.
Figure 3 : Repositories and Builds page |
When you click the create branch it will trigger same kind of flow and will create the new version and new build jobs.
Figure 4 : Flow of creating a new version in an Application |
Once you create a new version then you can promote this version to next stages (Development -> Testing -> Production). When you promote it will deploy the artifacts to next stages.
[1] http://wso2.com/cloud/app-factory/
[2] http://wdfdo1986.blogspot.com/2015/07/wso2-app-factory-developing-new.html
Comments
Post a Comment