return this.commandService.execute( new GetProcessInstancesCommand() );
}
public WorkItemManager getWorkItemManager() {
if ( workItemManager == null ) {
workItemManager = new WorkItemManager() {
public void completeWorkItem(long id,
Map<String, Object> results) {
CompleteWorkItemCommand command = new CompleteWorkItemCommand();
command.setWorkItemId( id );
command.setResults( results );