How to assign variable value in java delegate class? I'm using postman for post request. I don't want to use forms. I want to get the variable in service task and save it in the database has it cannot be null . error comes in testing and it shows it cannot be null
a) get list of tasks: GET /task?assignee=anAssignee
b) use task id to get process data:
GET /task/aTaskId/variables
See:
Via Java API in the delegate code:
https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/
On the Java API outside a the delegate code via the TaskService: https://docs.camunda.org/javadoc/camunda-bpm-platform/7.15/org/camunda/bpm/engine/TaskService.html#getVariables-java.lang.String-java.util.Collection-