Form Inputs with Complex Types

Version: Bonita 7.0
Java: 1.7
Operating System: Windows 7

Hello,

I have built a contract with a complex type ( see below) . I have a form associated to this contract, but I’m having issues when submitting OnClick event. I think its because of the nested structure. The displays on the form correctly so it looks like I’m grabbing the element and I’m binding it correctly.

I’m just not able to Submit the object. I also see the below message in the firefox debugger.

please help

editInfo ../{{context.newDetailInfo_ref.link}} editPerson ../{{context.newPerson_ref.link}} return { 'newEditPerson': $data.editPerson };

newEditPerson
lastName
firstName
personInfo
address
city
state

Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery-1.6.4.js:3149:0 no element found 180078:1:1 "Error: r.assign is not a function o/<.set@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/generator.min.js:1:2910 doRequest/<@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/widgets/pbButton/pbButton.js:92:9 k/g.error/<@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:81:286 f/<@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:112:343 Pe/this.$get</l.prototype.$eval@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:126:189 Pe/this.$get</l.prototype.$digest@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:123:278 Pe/this.$get</l.prototype.$apply@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:126:469 l@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:81:487 O@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:86:99 wf/</w.onload@http://localhost:8080/bonita/portal/resource/taskInstance/Account%20Request%20Submission/2.7/Review%20Account%20Request%20(Allow%20certain%20fields%20to%20be%20edited)/content/js/vendor.min.js:87:124 " vendor.min.js:103:67 e/<() vendor.min.js:103 He/this.$get</<() vendor.min.js:77 f/<() vendor.min.js:112 Pe/this.$get</l.prototype.$eval() vendor.min.js:126 Pe/this.$get</l.prototype.$digest() vendor.min.js:123 Pe/this.$get</l.prototype.$apply() vendor.min.js:126 l() vendor.min.js:81 O() vendor.min.js:86 wf/</w.onload() vendor.min.js:87

Also getting below message when displaying formError

{ "exception": "class org.bonitasoft.engine.exception.BonitaRuntimeException", "message": "USERNAME=newuser | java.lang.NullPointerException" }

This can be closed. I did not realize that the contract elements can not be optional. I was passing in elements that needed to be there.

Thanks

Hi,

Is it possible to share your process so I can try to test it and figure out what goes wrong?

As REST response report a java.lang.NullPointerException I would recommend to check the Bonita Engine log file that might include more details.

Thanks

Thanks for the feedback.

Still I’m surprised about the java.lang.NullPointerException in the RESP API call response.
I will try to investigate further.