it.eng.spagobi.workflow.services
Class WorkListModule

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.module.AbstractModule
          extended by it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule
              extended by it.eng.spagobi.workflow.services.WorkListModule
All Implemented Interfaces:
it.eng.spago.dispatching.module.ModuleIFace, it.eng.spago.dispatching.service.list.basic.IFaceBasicListService, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable

public class WorkListModule
extends it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule

See Also:
Serialized Form

Constructor Summary
WorkListModule()
           
 
Method Summary
protected  it.eng.spago.base.SourceBean adapt(org.jbpm.taskmgmt.exe.TaskInstance aTaskInstance)
          Map a single assignment to a source bean
 it.eng.spago.paginator.basic.ListIFace getList(it.eng.spago.base.SourceBean arg0, it.eng.spago.base.SourceBean arg1)
          Ovverided to code the logic to get the worklist from workflow engine.
protected  it.eng.spago.base.SourceBean tasksToSourceBean(java.util.List aWorkList)
          Map a java.util.List of assignments to a source bean
 
Methods inherited from class it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule
callback, delete, getList, service, setList
 
Methods inherited from class it.eng.spago.dispatching.module.AbstractModule
getConfig, getModule, getModuleMethod, getPage, getSharedData, init, setModule, setModuleMethod, setPage, setSharedData
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse, setRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkListModule

public WorkListModule()
Method Detail

tasksToSourceBean

protected it.eng.spago.base.SourceBean tasksToSourceBean(java.util.List aWorkList)
                                                  throws it.eng.spago.base.SourceBeanException
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:
it.eng.spago.base.SourceBeanException - if some errors occurs in the source bean population
WorkflowEngineException - if some errors occurs

adapt

protected it.eng.spago.base.SourceBean adapt(org.jbpm.taskmgmt.exe.TaskInstance aTaskInstance)
                                      throws it.eng.spago.base.SourceBeanException
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:
it.eng.spago.base.SourceBeanException - if some errors occurs in the source bean population
WorkflowEngineException - if some errors occurs

getList

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

Parameters:
arg0 - the arg0
arg1 - the arg1
Returns:
the list
Throws:
java.lang.Exception - the exception