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:
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