Hello i have this king of model. i was wondering what do i do to make whenever i press a button on angular it would complete a task. i have 2 different buttons and they go different directions. i might have more so boolean wont work. I also am using Java api not Rest.
I do start the process:ProcessInstance pi = runtimeService.startProcessInstanceByKey(PbsBpmConsts.MAIN_PROCESS_NAME, processParams);
tc.setProcessInstanceId(pi.getProcessInstanceId());
and i complete it with:
tasksService.completeTask(taskId);
The complete is called whenever i press the button. however my process does not go further. My qeustion how can i accomplish that and what should i do? Thanks in Advance!