AnsweredAssumed Answered

Listing active workflows

Question asked by samuel.penn on Jun 6, 2008
Latest reply on Jun 16, 2008 by samuel.penn
Hi all,

First off, I've seen http://wiki.alfresco.com/wiki/Workflow_JavaScript_API but I'm using 2.2 so though it looks like what I want, it's not too useful.

What I'd like to be able to do is to get a list of active advanced workflows from Javascript. I thought I might be able to do this by running a search as follows:


search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/bpm/1.0}workflowTask\"");

But though this search runs without error, it returns no results. I've also tried searching for the specific type of tasks (e.g. scwf:engineeringReview) that I know are in the system. Should this sort of search work in 2.2 (in which case, what am I doing wrong?), or am I doomed to failure?

In case I'm completely barking up the wrong tree, what I'm trying to achieve is to provide a way for a user to see where workflows currently are, which users own which steps, and potentially reassign them (in the situation that a user is off sick for example and a manager wants to reassign them). I was hoping to be able to prototype something with a simple Javascript webscript. Is it something that can be done in Java?

Thanks,

Sam.

Outcomes