Running Application

1
+1
-1

Hi
I installed Bonita BPM Community 7.2.0 and according to the tutorial documentation built an application successfully (Travel Request example). At the end of the tutorial it is said: "When you click the link, the form for submitting a new travel requests is displayed. Congratulations, you have just created your first Living Application!"
Yes I see the application page and by clicking on "Create new travel request" the "Submit a new travel request" form is opened, but when I complete the form and click on "submit" button nothing happens and the the page stays ready.
Is there any problem? How can I run an application and follow it to the end?
Thanks in advance

Comments

Submitted by Sean McP on Mon, 02/15/2016 - 10:25

Have you filled in all the fields? That's how I get it to work...the reason is required for example.

I also downloaded the official copy to make sure mine was correct and that worked just fine also.

regards

Submitted by bakhshayesh on Mon, 02/15/2016 - 20:07

Yes I fill the fields correctly. In fact when I run the process in Bonita BPM Studio it works well. Also when I start the process in portal it works as well. But when I click on application link and click the button "Create new travel request" in the first page of application and redirect to the "Submit a new travel request" form, there I fill the fields and click on "submit" button, but nothing happens!!
Should I had imported forms or something else manually?
Meanwhile the application profile is user, but I should enter in the administrator mode so that I can see the list of applications. How can a user execute an application? (In* user* mode you can't see the applications in the menu titles)

Submitted by Sean McP on Mon, 02/15/2016 - 20:06

You're right it doesn't work...

really strange...

I've created a bug report here if you want to watch...

https://bonita.atlassian.net/browse/BBPMC-360

regards
Seán

Submitted by bakhshayesh on Mon, 02/15/2016 - 20:29

Thank you dear Sean,
In my opinion tutorial documents are very useful and informative however I am to inform you that in addition to the running application problem there are a few mistakes and mistype errors in the tutorial document for creating an application which I've revised them for myself and I think it can confuse the newbies as me. Some of them are non-revised parts of the previous tutorial documents.
Thanks again for your following up

Submitted by bakhshayesh on Tue, 02/16/2016 - 21:33

When I run the process via Run icon in studio cool bar it is done and finished well.
But when I start the process from the first page (the application page) the above problem occurs!!
In other words whenever I open the UI Designer and open the application page and review it, then click start process button in that form, it redirects me to the first form of the process I stuck in this form and by submitting the form nothing happens!

Submitted by Sean McP on Wed, 02/17/2016 - 02:53

Yes, this is also what happens to me...

You CANNOT run the application from the UI Designer...that's a given. Don't even try it. The link works in so far as it is a link.

Preview is there to only allow you to see what the page looks like, not to run the process.

The real problem is with what's happening in the Portal. When running as a process it's OK, when running as an application it doesn't.

4 answers

1
+1
-1
This one is the BEST answer!

that is the process page cannot get the process id.
in the tutorial , the application form "Create new travel request" button to URL property to"http://localhost:8080/bonita/portal/resource/process/Travel%20Request/1.0/content/?id="+processDef[0].id" is wrong.in version 7.X
to correct this, you can add a variable "newRequestFormURL" of javascript expression with value
return "http://localhost:8080/bonita/portal/resource/process/Travel%20Request/1.0/content/?id=" + $data.processDef[0].id;
then set the target url to expression or variable mode with value newRequestFormURL.

Comments

Submitted by bakhshayesh on Wed, 02/17/2016 - 20:00

Thank you very much dear yqxu.
You are right that works!!
Can you answer this question please ??

1
+1
-1

re-publish a new organization from the studio overwrite the he default ACME organization and applications in the portal ,
if 7.2.1 's re-publish add new organizationdon to potal instead of overwritting old one,this also a good news.

Comments

Submitted by bakhshayesh on Sat, 02/27/2016 - 20:29

Yes, but when I republish the ACME again, the old applications which were related to ACME don't appear again. And also when I publish my new defined organization and build an application in it the recent application is not shown either.

Submitted by Sean McP on Sun, 02/28/2016 - 06:36

As already said, this is a bug and will be fixed in 7.2.1 which will be available sometime soon, it's not available just now.

regards

1
0
-1

You can browse the h2 directly by this way:
Run h2 jar file: java -jar h2-1.3.170.jar (h2 jar file can be found in BonitaBPMCommunity-7.1.3/workspace/tomcat/lib/bonita). This should open a login page in your web browser. Specify the following settings:
• Driver Class: org.h2.Driver
• JDBC URL: jdbc:h2:tcp://localhost:9091/bonita_journal.db;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE;IGNORECASE=TRUE;
• User Name: sa
• Password:
Once connected you can check the content of the following tables: * BUSINESS_APP * or BUSINESS_APP_PAGE * PAGE

1
0
-1

I think it's a bug for republish,use import/export instead.
by the way ,how do you browse the h2 database directly.

Notifications