You can send the .bos file using some sharing file solution such as dropbox or Google Drive.
https://www.dropbox.com/s/n201vwbzygambd2/SimpleTravelRequest-1.0.bos?dl=0
Gracias por tu ayuda (thank for you help)
I import your process and in order to make it work I did the following:
- Open the process
- Click on âConfigureâ button
- Go to âAuthenticationâ
- Type again the Username: âwalter.batesâ (without the quotes, or use the one suggest in the tutorial instruction: âhelen.kellyâ).
Then simply run the process.
https://www.dropbox.com/s/2x08301sz1xqq2w/issue.pdf?dl=0
download the file and look at the screenshots. that is mi issue. Try to build the application buy i dont can.
thank you
In the preview of the Travel tool page, can you make a right click on the âCreate new travel request buttonâ and select the âCopy link addressâ in order to share here the link that was generated?
Also you need to make sure that first you deploy the process definition (e.g. by clicking on âRunâ button in the Studio) so that the REST API call to get process definition id and generation of the link can actually work.
the REST API call in studio is OK, and the link generated is:
http://localhost:8080/bonita/portal/resource/process/Travel%20Request/1.0/content/?id=
id value is empty in the link you provide.
Did you defined the processDef
form variable?
Did you initialize the variable with the correct URL: âŠ/API/bpm/process?p=0&c=1&f=name=Travel Request
Important: make sure that âTravel Requestâ match exactly your process (pool) name.
You might want to use the web browser console (enable it with F12 key) to check the API request response.
Actually how to resolve the issue with;
USERNAME=helen.kelly | javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement ?
In order to help can you please share full Engine log content available in the Studio âHelpâ menu?
Also if you can export the diagram as a .bos file and share it that can help.
Thanks.
Hi Antoine,
Here are the files.
Thank you
Hashim
https://www.dropbox.com/s/42dzv14hrf12f00/bonita.2015-07-31.log?dl=0
https://www.dropbox.com/s/cfpeblmqqm1d2ts/Simple%20Travel%20Request-1.0.bos?dl=0
Hi Antoine,
I think the issue is due to this error;
ERROR: NULL not allowed for column âNUMBEROFNIGHTâ; SQL statement:
insert into TRAVELREQUEST (persistenceId, DEPARTUREDATE, DESTINATION, HOTELNEEDED, NUMBEROFNIGHTS, persistenceVersion, REASON, REFUSALREASON, STATUS, USERID) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23502-170]
I think I need to change the db column name from NUMBEROFNIGHT to NUMBEROFNIGHTS.
In your BDM definition you need to have the attribute name: numberOfNights
When you change the name of an attribute make sure that you check the âReset Business Data Modelâ in order for the column in database to be renamed.
You might want to do a simple modification in the description of an object to trigger a new publication of the BDM.
Hi, can you try to verify that the class BonitaUsers (the one that includes getProcessInstanceInitiator method) is correctly embedded in the process .bar file? To do that:
- Build the process .bar file by going to âServerâ â âBuildâŠâ menu
- Select the âTravel Requestâ pool
- Click on Finish button
- Open the bar file with a tool such as 7-zip or winzip
- Go to âclasspathâ folder and check if âprovidedscripts.jarâ exist
- Open âprovidedscripts.jarâ and verify that it includes âBonitaUsers.classâ
Also if you can share the .bos file that include all process files that might help to reproduce the issue.
Thanks.
Hello Antoine,
providedscripts.jar donât exist in .bar file.
bar
bos
bonitalog
How can I do to fix it? Thank you
I import the .bos file in my Studio and when I build the .bar file it includes correctly the providedscripts.jar file.
Can you check that you have BonitaUsers.groovy
file in BonitaBPMCommunity-7.0.1/workspace/default/src-providedGroovy/
folder?
Also verified that you have BonitaUsers.class
file in BonitaBPMCommunity-7.0.1/workspace/default/bin/
folder.
If you cannot find those file the solution is probably to install again the Studio. If you have them I would recommend to open a bug and attached a zip of BonitaBPMCommunity-7.0.1/workspace/default
folder.
Thanks
Hello Antoine,
I have found that these files exist⊠then I have reinstalled BonitaBPM but still not working.
Then I exported my processes to .bos file. I have uninstalled BonitaBPM and Iâve deleted all references to Bonita to perform a clean installation. Iâve installed the aplication again. Then Iâve imported my processes and everything works fine.
Thank you for your help. Regards,