Hi there. I’m trying to get my second process in bonita to work. The first worked like a charm -it was a simple gatewayless one-, so I felt encouraged and tried to go to the next level by using some gateways, but it doesn’t work at all, even though I followed the same steps with the corresponding changes according to the new flow and BDM. I’m sure I’m missing something really silly but I ran out of ideas, so I will appreciate a lot any help. By the way, this is a beginners level question, so if this is not the right place to ask, please let me know.
My process diagram is as follows:
The first step was to define the BDM, which consists of a business object with five attributes, three of them mandatory (the ones to be used in the instantiation form).
The second step was to publish my organization in Bonita Studio. Then I set up the actors and mapped them to members of my organization.
The third step was to declare an instance of my BDM inside the process.
The fourth step was to declare the instantiation contract, using only the mandatory attributes of the BDM, without any restrictions defined, in order to make things as simple as possible. Then I defined the instantiation form by keeping the one offered automatically by Bonita Studio.
The fifth step was to update the BDM instance with the instantiation contract values. This was actually done automatically by Bonita Studio with the following code:
def hojaInfoTutorVar = new atenea.HojaInfoTutor()
hojaInfoTutorVar.Grupo = hojaInfoTutorActualInput.Grupo
hojaInfoTutorVar.Fecha = hojaInfoTutorActualInput.Fecha
hojaInfoTutorVar.NombreAlumno = hojaInfoTutorActualInput.NombreAlumno
return hojaInfoTutorVar
The BDM object contains two more non mandatory attributes, which are to be updated later in the two human tasks shown before.
The sixth step was to define the contract, the actors, the form and the operations for the two human tasks. The contract for each task involves the three attributes used previously in the instantiation form, and one more which is to be updated by means of the corresponding form.
Finally I set up a connector in a service task to notify the initiator that the process is done.
No further code was added or modified from the one offered by default by Bonita Studio, neither in the forms nor in the BDM instantiation.
The thing is, though, that when the process is started, the instantiation form is prompted but nothing happens after the form is filled out and the submit button is clicked.
Thanks in advance