If that is the case, there is no userId attribute for the TravelRequest object.
If you added it yourself, you may check the type of the attribute by looking the data modeler available from the Development > Business Data Model > Manage menu of the Studio.
There is a userId attribute for TravelRequest and it is defined as String in the data model. The method setUserId is generated automatically and it seems that the type transformation proposed in the tutorial :
String.valueOf(…) does not work for this method.
So, the problem is still there…
Where can I find the setUserId method for TravelRequest?
I just figured out what is wrong with your process: it is a problem of case in the name of the method you called.
If you look at your data model, you will notice that your attribute is named userid with lowercase “i” (it should be userId if you follow the instructions). This will generate a setUserid method in the TravelRequest BDM object.
Now the problem is that you have called the method setUserId with an uppercase “I” as instructed.
In conclusion, you must either rename the attribtue or use the right method.
Be careful as Groovy and JavaScript are both case-sensitive.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.