Jump to content
We have recently updated our Privacy Statement, available here ×
  • BW6.X - BWCE - How to use Templates in BusinessWorks and BusinessWorks Container Edition


    While this is common in integration projects to have to manage the same integration scenario for different business objects this translate in having to implement the same flow multiple times but with different Schemas and Mappings in BusinessWorks.

    To help manage such requirements recent BusinessWorks versions support creating a template from a project and creating a new project using such template.

    This new blog article is to explain how to use this feature.

    Creation of a template

    Create an application skeleton in Studio having in mind this will become a template used to create a number of actual applications.

    For example you can create a template of an application processing JMS messages that would includes

    . A JMS connection resource

    . The properties needed to configure such resource

    . A process with a JMS Receive Message activity, logging activities, a call to a sub-process containing the business logic to implement in each variant and a default error handler

    1*3SyK5365fST46o_bodqFCw.png

    Once your template application is created, you can create a template with the following:

    . Right click on the application you want to use to create a Template

    . Select Export -> Studio Projects as Template

    1*vHqt31aPWmDPPL4vj3vdiQ.png

    A panel similar to the example below appears:

    1*I8SMdOhnXQj5b30SczQHAw.png

    . Click on Select Dependencies and select a target folder to manage the templates

    1*k8cBoeYv_cdjlveIc8UUTQ.png

    . Click Next, , a panel similar to the example below appears

    1*Y_35mLBzjQQoulYVFHFeNQ.png

    Update the proposed Name and Version and add a Description as needed.

    . Click Finish

    . After 10 to 20 seconds you can check the template as been created in the specified template folder

    1*R74_MBgYtQy0VNXcqdY_3w.png

    Note that a template file is in zip format and can be unzipped if needed.

    Creation of an application from a template

    You can create a new BusinessWorks project from a template with the following:

    . Right click in the Project Explorer area

    . Then select the menu New -> BusinessWorks Project from Template

    1*KOSd7dghLTBN0QxfF9LY6A.png

    In the panel that appears, select the template project you want to use:

    1*zykc8LOv4aiGsPf8WJ5dmg.png

    . Click Next, a panel similar to the example below appears

    1*jpr7R8TAMnpk-FbTOuiJyw.png

    . Click Next , a panel similar to the example below appears

    1*adewXmxuEGYPGhivUb-b6g.png

    You can update the Application Name and Module Name by selecting the existing name in the column on the left and entering the new name in the column on the right.

    1*yW2tNgH84doh-GitknYlYQ.png

    . Click Finish

    You now have to add the elements needed to fully implement the new application instance, this would include the schema describing the message received over JMS, the resource describing the back-end service that need to be called and the sub process doing the needed mappings and calling the back-end.

    1*wFWJvI28-HIZiwH-V0qp5A.png

    Reference elements

    BusinessWorks documentation

    https://docs.tibco.com/pub/activematrix_businessworks/6.10.0/doc/html/Default.htm#app-dev-guide/exporting-a-project-.htm?Highlight=Template

    https://docs.tibco.com/pub/activematrix_businessworks/6.10.0/doc/html/Default.htm#app-dev-guide/creating-a-project-f.htm?Highlight=Template


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...