Start a new workflow on a deliverable and than try to approve the first task.
The following error is thrown:
2018-05-25 19:40:53,716 ERROR [WebEngineExceptionMapper] org.nuxeo.ecm.core.api.NuxeoException: User with id 'mcedica@nuxeo.com' cannot end this task
org.nuxeo.ecm.core.api.NuxeoException: User with id 'mcedica@nuxeo.com' cannot end this task
at org.nuxeo.ecm.platform.task.core.service.TaskServiceImpl.endTask(TaskServiceImpl.java:178)
at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.endTask(DocumentRoutingServiceImpl.java:860)
at org.nuxeo.ecm.restapi.server.jaxrs.routing.TaskObject.completeTask(TaskObject.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)