@Service
public class FlowableService {
@Autowired
private RuntimeService runtimeService;
@Autowired
private TaskService taskService;
public void startprocess(){
ProcessInstanceinstance=runtimeService.startProcessInstanceById("startProcess");
System.out.println("The process Instance Id "+instance.getProcessInstanceId());
}
}
@RestController
@RequestMapping(“/workflow”)
public class Controller {
@Autowired
private FlowableService service;
@PostMapping("/start")
public void startProcess(){
service.startprocess();
}
}
i am getting the no deployed process definition found with id ‘startProcess’ everytime