Getting started tutorial

1
0
-1

https://documentation.bonitasoft.com/bonita/7.8/getting-started-tutorial

Define business object initial values

An initTravelRequest() script was automatically generated to initialize our data with the contract. We will complete this script by setting up the userId and status attributes.
Insert the following code after the first line:

travelRequestVar.userId = BonitaUsers.getProcessInstanceInitiator(apiAccessor, processInstanceId).id

travelRequestVar.status = "pending"

Ok, so when I go in to modify the script I notice the following warning:

Multiple markers at this line
- implements groovy.lang.Script.run
- Groovy:unable to resolve class com.company.model.
ServiceRequest

When I try and update the script it does not seem to recognise my ServiceRequest class to prompt for attributes to set?

Comments

Submitted by delphine.coille on Tue, 04/20/2021 - 15:55

On which version of Bonita are you developping ?

Can you please send the entire script and tell me where you have defined it (in your business variable?)

Thanks

No answers yet.
Notifications