Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This example has been upgrade to use the latest features available in Bonita 7.9.3. Some workarounds have been removed as better alternatives exist in Bonita 7.9. The content of the Git repository is now the Bonita project files. .bos file can be found in "releases" on GitHub.
- Loading branch information
Antoine Mottier
committed
Sep 18, 2019
1 parent
fb2b246
commit 579348f
Showing
30 changed files
with
6,517 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Output of source code compilation. | ||
# For example Bonita includes helper Groovy classes such as BonitaUsers (with for example getProcessInstanceInitiator method). | ||
# Sources (e.g. BonitaUsers.groovy) are located in src-providedGroovy folder and build result (e.g. BonitaUsers.class) is located in bin folder. | ||
/bin | ||
|
||
# BDM jar generated from the BDM definition (bom.xml) | ||
/lib/bdm-client-pojo.jar | ||
|
||
# You can also ignore in lib folder jar files related to connectors or actor filters provided by Bonita | ||
/lib/bonita-connector-email-impl-1.0.15.jar | ||
/lib/bonita-userfilter-initiator-impl-1.0.0-SNAPSHOT.jar | ||
|
||
|
||
# Classpath configuration for Bonita Studio. Automatically generated. | ||
.classpath | ||
|
||
# Project settings. Studio is able to create them with appropriate default value if needed. | ||
.settings | ||
|
||
# Should be created by the Studio if needed. | ||
/META-INF | ||
|
||
# Should be created by the Studio if needed. | ||
/build.properties | ||
|
||
# If you don't use database connectors you can safely ignore the content of database_connectors_properties folder | ||
/database_connectors_properties | ||
|
||
# h2 database information are only used when testing application in Bonita Studio. | ||
/h2_database | ||
|
||
# ACME test organization is provided by Bonita Studio. | ||
# You probably don't want to include it except if you did some customization. | ||
/organizations/ACME.organization | ||
|
||
# Ignore the Groovy script sources provided with Bonita Studio. | ||
/src-providedGroovy | ||
|
||
# Web component user individual preferences (e.g. bookmarked,...). | ||
/web_widgets/.metadata | ||
/web_page/.metadata | ||
|
||
# Output of web component build | ||
/web_widgets/*/*.js | ||
/web_page/*/js | ||
|
||
# Web widgets provided by Bonita in the UI Designer. | ||
/web_widgets/pb*/ | ||
|
||
# Gradle (can be used for example to build and package REST API extensions). | ||
|
||
# Ignore Gradle generated files. | ||
.gradle | ||
**/build/ | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored). | ||
!gradle-wrapper.jar | ||
|
||
# IntelliJ (can be used for example to create a REST API extension). | ||
|
||
# Ignore IntelliJ output folder. | ||
**/out/ | ||
|
||
# IntelliJ user workspace configuration. | ||
**/.idea/**/workspace.xml | ||
|
||
# IntelliJ Gradle integration configuration. | ||
**/.idea/**/gradle.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>My project</name> | ||
<comment>7.9.3</comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.wst.validation.validationbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.bonitasoft.studio.common.repository.bonitaNature</nature> | ||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature> | ||
</natures> | ||
</projectDescription> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<applications xmlns="http://documentation.bonitasoft.com/application-xml-schema/1.0"> | ||
<application token="procurement" version="1.0" profile="User" homePage="requests" state="ACTIVATED" layout="custompage_defaultlayout" theme="custompage_bootstrapdefaulttheme"> | ||
<displayName>Procurement</displayName> | ||
<description>This a procurement sample application.</description> | ||
<iconPath></iconPath> | ||
<applicationPages> | ||
<applicationPage customPage="custompage_supplierListing" token="suppliers"/> | ||
<applicationPage customPage="custompage_procurementRequestListing" token="requests"/> | ||
</applicationPages> | ||
<applicationMenus> | ||
<applicationMenu applicationPage="requests"> | ||
<displayName>Requests</displayName> | ||
</applicationMenu> | ||
<applicationMenu applicationPage="suppliers"> | ||
<displayName>Suppliers</displayName> | ||
</applicationMenu> | ||
</applicationMenus> | ||
</application> | ||
</applications> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<businessObjectModel modelVersion="1.0" productVersion="7.2.0.beta-02"> | ||
<businessObjects> | ||
<businessObject qualifiedName="com.company.model.Request"> | ||
<description>Procurement request</description> | ||
<fields> | ||
<field type="LONG" length="255" name="caseId" nullable="false" collection="false"/> | ||
<field type="STRING" length="255" name="summary" nullable="true" collection="false"/> | ||
<field type="STRING" length="512" name="description" nullable="true" collection="false"/> | ||
<field type="LOCALDATE" length="255" name="creationDate" nullable="false" collection="false"/> | ||
<field type="STRING" length="255" name="createdBy" nullable="false" collection="false"/> | ||
<field type="STRING" length="255" name="status" nullable="false" collection="false"/> | ||
<field type="LOCALDATE" length="255" name="completionDate" nullable="true" collection="false"/> | ||
<relationField type="AGGREGATION" reference="com.company.model.Supplier" fetchType="EAGER" name="selectedSupplier" nullable="true" collection="false"/> | ||
</fields> | ||
<uniqueConstraints/> | ||
<queries/> | ||
<indexes/> | ||
</businessObject> | ||
<businessObject qualifiedName="com.company.model.Quotation"> | ||
<description>Quotation sent to suppliers based on a request</description> | ||
<fields> | ||
<relationField type="AGGREGATION" reference="com.company.model.Request" fetchType="EAGER" name="request" nullable="false" collection="false"/> | ||
<relationField type="AGGREGATION" reference="com.company.model.Supplier" fetchType="EAGER" name="supplier" nullable="false" collection="false"/> | ||
<field type="STRING" length="255" name="status" nullable="false" collection="false"/> | ||
<field type="BOOLEAN" length="255" name="hasSupplierAccepted" nullable="true" collection="false"/> | ||
<field type="DOUBLE" length="255" name="proposedPrice" nullable="true" collection="false"/> | ||
<field type="STRING" length="255" name="comments" nullable="true" collection="false"/> | ||
</fields> | ||
<uniqueConstraints/> | ||
<queries> | ||
<query name="findFromRequest" content="SELECT q 
FROM Quotation q 
WHERE q.request.persistenceId = :id" returnType="java.util.List"> | ||
<queryParameters> | ||
<queryParameter name="id" className="java.lang.Long"/> | ||
</queryParameters> | ||
</query> | ||
</queries> | ||
<indexes/> | ||
</businessObject> | ||
<businessObject qualifiedName="com.company.model.Supplier"> | ||
<fields> | ||
<field type="STRING" length="255" name="name" nullable="false" collection="false"/> | ||
<field type="STRING" length="255" name="description" nullable="true" collection="false"/> | ||
</fields> | ||
<uniqueConstraints> | ||
<uniqueConstraint name="UNIQUE_NAME"> | ||
<fieldNames> | ||
<fieldName>name</fieldName> | ||
</fieldNames> | ||
</uniqueConstraint> | ||
</uniqueConstraints> | ||
<queries> | ||
<query name="findById" content="SELECT s 
FROM Supplier s 
WHERE s.persistenceId = :id" returnType="com.company.model.Supplier"> | ||
<queryParameters> | ||
<queryParameter name="id" className="java.lang.Long"/> | ||
</queryParameters> | ||
</query> | ||
</queries> | ||
<indexes/> | ||
</businessObject> | ||
</businessObjects> | ||
</businessObjectModel> |
Oops, something went wrong.