Creation
The creation of a SU project can be achieved by:
- Using the Petals Service-Unit wizard (File > New > Petals > Service-Unit project).
- Generating concrete projects from a sketch project.
- Importing an existing Service-Assembly.
The creation is detailed more precisely in various tutorials of the Petals Studio.
Export for Petals
If your SU project is referenced by a SA project, you should export the SA project instead.
Indeed, in this case, the service-unit export will be done through the export of the SA project.
SU and SA projects are compatible with the Petals Maven plug-in. The packaging can be done with both the Studio and Maven. |
Fast export
The fast export is a shortcut to create a service assembly from a SU project in few seconds.
The created service assembly is saved at the root of the SU project.
To export a SU project quickly, right-click it and select Petals > Fast Export for Petals.
Complete export
The complete export provides numerous options to export one or several SU projects at once.
Select File > Export > Petals > Service-Unit.
A wizard starts.
The top part lists all the SU projects contained in the workspace. Select the ones you want to export and the export mode.
Distinct export, in a same directory
Every selected SU project will be exported, each one in its own service assembly.
All the service assemblies are placed in a same directory. The directory location must be specified.
Distinct export, in the project directories
Every selected SU project will be exported, each one in its own service assembly.
Each created service assembly is placed in the SU project. This is equivalent to making a Fast export on every selected SU project.
All-in-one export...
All the selected SU projects will be exported together in a single service assembly.
The created service assembly will be saved at the specified location.