it.eng.spago.workflow.worklist.action
Class WorkListAction

java.lang.Object
  extended by AbstractBasicListAction
      extended by it.eng.spago.workflow.worklist.action.WorkListAction

public class WorkListAction
extends AbstractBasicListAction

Author:
Zoppello A Spago List Action that use SpagoWorkflowAPI to get the worklist ( the list of assignments for which the user is a candidate ) for the user in the given session

Constructor Summary
WorkListAction()
           
 
Method Summary
protected  SourceBean adapt(IWorkflowAssignment wfAssignment)
          Map a single assignment to a source bean
protected  SourceBean assignmentsToSourceBean(java.util.List aWorkList)
          Map a java.util.List of assignments to a source bean
 ListIFace getList(SourceBean arg0, SourceBean arg1)
          Ovverided to code the logic to get the worklist from workflow engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkListAction

public WorkListAction()
Method Detail

assignmentsToSourceBean

protected SourceBean assignmentsToSourceBean(java.util.List aWorkList)
                                      throws SourceBeanException,
                                             WorkflowEngineException
Map a java.util.List of assignments to a source bean

Parameters:
aWorkList - - The java.util.List of the assignment
Returns:
The source bean structure of the Assignments List
Throws:
SourceBeanException - if some errors occurs in the source bean population
WorkflowEngineException - if some errors occurs

adapt

protected SourceBean adapt(IWorkflowAssignment wfAssignment)
                    throws SourceBeanException,
                           WorkflowEngineException
Map a single assignment to a source bean

Parameters:
wfAssignment - The assignment to map to the source bean
Returns:
the source bean form of the assignment
Throws:
SourceBeanException - if some errors occurs in the source bean population
WorkflowEngineException - if some errors occurs

getList

public ListIFace getList(SourceBean arg0,
                         SourceBean arg1)
                  throws java.lang.Exception
Ovverided to code the logic to get the worklist from workflow engine

Throws:
java.lang.Exception