JBPM 4 - A New Tale… With To Much Obstacles (right now)

Well, its been a while i´ve cryed out so much terrible words as by now.
JBPM 4 is cool in many details, especially the Service-API (i guess its stolen from Alfresco, its biggest implementor i guess).
Yesterday - on Sunday - i´ve tried to implement my custom task-logic from JBPM 3… i saw the new TaskService API […]

Manage Alfresco´s JBPM Implementation Context

As a current task in the current project, its a requirement providing access to all comments of a workflow. For sure, you can doing this by retriving all completet tasks orderd by creation time. This can be performed using WorklfowQueries like this:

WorkflowTaskQuery query = new WorkflowTaskQuery();
query.setActive(null);

query.setProcessId(wi.id);

query.setTaskState(WorkflowTaskState.COMPLETED);

query.setOrderBy(new WorkflowTaskQuery.OrderBy[] {

WorkflowTaskQuery.OrderBy.TaskCreated_Desc,

WorkflowTaskQuery.OrderBy.TaskActor_Asc });
List<WorkflowTask> […]