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.
When I try and update the script it does not seem to recognise my ServiceRequest class to prompt for attributes to set?