How to return the value of a custom widget unto the form

1
0
-1

Hello,

I previously posted a question regarding passing the data from a pure javascript custom widget into the form, however, I experimented quite a bit with it and found it to be easier to learn how to use AngularJS and make sure the form logic is handled in the controller.

Now, I have a custom widget that builds an array of objects, and now I want to pass it into one of the attributes of the formInput for it to be processed into the database.

Regards,

Miguel

1 answer

1
0
-1

Hello Miguel

I believe it is not possible to transfer $scope variables of custom widget to bonita widget. If there is no special requirement to transfer data to bonita widget then you should perform data commit by calling BPM REST API for a process in custom widget. Make sure you pass contract input variables to REST API for instantiation call. We have been using this approach in our application development and it works like charm.

Regards

KB

Notifications