How to generate Process Diagram when using third party build tools like Maven

How to generate Process Diagram when using third party build tools like Maven

book

Article ID: KB0077806

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 6.x

Description

While generating an application EAR using third-party build tools like Maven, it doesn't contain 'Process Diagrams' by default. These diagrams (basically the files with extension .bwd and resides in the EAR under <appname>.ear\resources\<appname>\diagrams\) allows the user to see process implementation in TEA UI (or BWCE Monitoring UI). If these diagrams are not present under EAR at specified location, you won't see the process diagrams in UI. We need to follow one extra step to generate Process Diagrams as these diagrams doesn't get generated automatically when building EAR using third party build tools.

 

Issue/Introduction

How to generate Process Diagram when using third party build tools like Maven

Resolution

To get over this problem, simply before generating the EAR make a provision to generate the process diagram (detailed steps given below) and then move ahead further creating the EAR, say using Maven, as the process diagrams are bound to the workspace and as long these external tools like Maven uses the same workspace, the EAR generated using this method should contain the 'Process Diagrams' too.

You can explicitly generate Process Diagrams by two ways:

1. From BW Studio:
  • Navigate to Windows > Preferences > BusinessWorks > Process Diagram and select the Enable generation of process diagrams check box.
  • Navigate to Project Explorer, right-click the application name, and select the Generate Process Diagram option.
  • Expand your application and navigate to the Resources folder.
  • The Resources folder contains the Diagrams folder which contains the process diagrams for all the processes in the application module and all the related shared modules.
2. From command line utility - bwdesign:
  • Open bwdesign from bin-
bwdesign.exe -data pathOFWorkspace
  • Run the command, gen_diagrams
e.g. 
    gen_diagrams appName.application
  • You can pass an optional second argument too, a path where the diagram is to be exported
e.g.
bwdesign> gen_diagrams timerlogger.application D:\processdiagrams

 

Additional Information

Refer the below documentation link for complete details:
https://docs.tibco.com/pub/activematrix_businessworks/6.5.0/doc/html/GUID-51A6D6E0-3BA9-46E1-BF18-B2783F46827D.html