Jump to: navigation, search

Difference between revisions of "STP/BPMN Component/STP BPMN Presentation (Part 2)"

 
Line 1: Line 1:
 +
== Editor functionalities ==
 +
* Export the diagram as an image
 +
Usually, when you want to export a GMF diagram as an image, you can follow this procedure:
 +
1. Right-click on the diagram and select file, Export As file
 +
 +
2. A dialog pops up and you select the format of the image, its filename and location.
 +
 +
[[Image:ExportToImageDialog.png]]
 +
 +
We added an export wizard to do the same operation, since we have Eclipse users used to find everything in there.
 +
1. Click on Export in the file menu.
 +
 +
2. Select the bpmn_diagram file you want to export.
 +
 +
3. Choose the format in the options, the image file name and location.
 +
 +
[[Image:ExportToImageWizard.png]]
 +
 
== Generating BPMN ==
 
== Generating BPMN ==
* BPMN Generator
 
  
 
We created a BPMN factory that generates fragments of BPMN imported into a diagram.
 
We created a BPMN factory that generates fragments of BPMN imported into a diagram.

Revision as of 02:32, 2 February 2007

Editor functionalities

  • Export the diagram as an image

Usually, when you want to export a GMF diagram as an image, you can follow this procedure: 1. Right-click on the diagram and select file, Export As file

2. A dialog pops up and you select the format of the image, its filename and location.

ExportToImageDialog.png

We added an export wizard to do the same operation, since we have Eclipse users used to find everything in there. 1. Click on Export in the file menu.

2. Select the bpmn_diagram file you want to export.

3. Choose the format in the options, the image file name and location.

ExportToImageWizard.png

Generating BPMN

We created a BPMN factory that generates fragments of BPMN imported into a diagram.

  • Generator sample

This sample generates some BPMN out of a BPEL file. BPEL (Business Process Executable Language) is a XML based standard for the execution of business processes. In this scenario, a BPEL process is instrumented into a BPMN pool. It exposes the sequences and gateways of the BPEL as BPMN shapes. It keeps annotations that link to the original BPEL markup. See this bug to keep track on it.

Here is the BPEL file we are going to generate BPMN from:


 <?xml version="1.0" encoding="utf-8"?>
 <bpel:process>
 <bpel:scope>
   <bpel:sequence>
   	<bpel:scope>
   		<bpel:sequence>
   			<bpel:assign/>
     			<bpel:assign/>
     		</bpel:sequence>
   	</bpel:scope>
     	<bpel:assign/>
     	<bpel:assign/>
     	<bpel:sequence>
     		<bpel:assign/>
     		<bpel:assign/>
     			<bpel:scope>
     				<bpel:sequence>
   					<bpel:assign/>
     					<bpel:assign/>
     				</bpel:sequence>
     			</bpel:scope>
     	</bpel:sequence>
   </bpel:sequence>
 </bpel:scope>
 </bpel:process>

Here is the BPMN generated out of it: GeneratedBPEL.png