I'm creating a task like this,
ProcessInstance processInstance = runtimeService
.startProcessInstanceByKey(ApplicationConstants.POST_APPROVAL_WORKFLOW_NAME, variablesMap);
I want to assign the owner for this, how can I do it.
If not, is it possible to find taskId from this then I can use taskService.setOwner.
Please help me with this.