in the sourcecode of Activiti, so the Activiti api will be enhanced of in your own sourcecode. The latter is simple, just set e.g. a processvariable called 'state' to either value and only display those tasks that have the processvariable state with value 'running'