org.imixs.workflow.jee.ejb
Class WorkflowServiceBean

java.lang.Object
  extended by org.imixs.workflow.jee.ejb.WorkflowServiceBean
All Implemented Interfaces:
org.imixs.workflow.ExtendedWorkflowContext, org.imixs.workflow.jee.ejb.WorkflowService, org.imixs.workflow.WorkflowContext, org.imixs.workflow.WorkflowManager

@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
@RolesAllowed(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
public class WorkflowServiceBean
extends Object
implements org.imixs.workflow.jee.ejb.WorkflowService, org.imixs.workflow.ExtendedWorkflowContext


Field Summary
 
Fields inherited from interface org.imixs.workflow.jee.ejb.WorkflowService
SORT_ORDER_CREATED_ASC, SORT_ORDER_CREATED_DESC, SORT_ORDER_MODIFIED_ASC, SORT_ORDER_MODIFIED_DESC
 
Constructor Summary
WorkflowServiceBean()
           
 
Method Summary
 int getDebugLevel()
          Workflow Context
 org.imixs.workflow.jee.ejb.EntityService getEntityService()
          This method returns an instance of the EntityService used by the WorkflowManager Implementation.
 org.imixs.workflow.ExtendedModel getExtendedModel()
           
 org.imixs.workflow.Model getModel()
          This Method returns the modelManager Instance.
 org.imixs.workflow.jee.ejb.ModelService getModelService()
          This method returns an instance of the Imixs JEE ModelService used by the WorkflowManager Implementation.
 Object getSessionContext()
           
 org.imixs.workflow.ItemCollection getWorkItem(String uniqueid)
          This method loads a Workitem with the corresponding uniqueid
 Collection<org.imixs.workflow.ItemCollection> getWorkList(String name)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkList(String name, int startpos, int count, String type, int sortorder)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByCreator(String name, int startpos, int count, String type, int sortorder)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByGroup(String name, int startpos, int count, String type, int sortorder)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByOwner(String name, int startpos, int count, String type, int sortorder)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByProcessID(int aid, int startpos, int count, String type, int sortorder)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByRef(String aref)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByRef(String aref, int startpos, int count, String type, int sortorder)
           
 Collection<org.imixs.workflow.ItemCollection> getWorkListByWriteAccess(int startpos, int count, String type, int sortorder)
           
 org.imixs.workflow.ItemCollection processWorkItem(org.imixs.workflow.ItemCollection itemCollection)
          processes a workitem with the provided Activity ID
 void removeWorkItem(org.imixs.workflow.ItemCollection aworkitem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowServiceBean

public WorkflowServiceBean()
Method Detail

getWorkItem

public org.imixs.workflow.ItemCollection getWorkItem(String uniqueid)
                                              throws Exception
This method loads a Workitem with the corresponding uniqueid

Specified by:
getWorkItem in interface org.imixs.workflow.WorkflowManager
Throws:
Exception

getWorkList

public Collection<org.imixs.workflow.ItemCollection> getWorkList(String name)
                                                          throws Exception
Specified by:
getWorkList in interface org.imixs.workflow.WorkflowManager
Throws:
Exception

getWorkList

public Collection<org.imixs.workflow.ItemCollection> getWorkList(String name,
                                                                 int startpos,
                                                                 int count,
                                                                 String type,
                                                                 int sortorder)
                                                          throws Exception
Specified by:
getWorkList in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

getWorkListByCreator

public Collection<org.imixs.workflow.ItemCollection> getWorkListByCreator(String name,
                                                                          int startpos,
                                                                          int count,
                                                                          String type,
                                                                          int sortorder)
                                                                   throws Exception
Specified by:
getWorkListByCreator in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

getWorkListByOwner

public Collection<org.imixs.workflow.ItemCollection> getWorkListByOwner(String name,
                                                                        int startpos,
                                                                        int count,
                                                                        String type,
                                                                        int sortorder)
                                                                 throws Exception
Specified by:
getWorkListByOwner in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

getWorkListByWriteAccess

public Collection<org.imixs.workflow.ItemCollection> getWorkListByWriteAccess(int startpos,
                                                                              int count,
                                                                              String type,
                                                                              int sortorder)
                                                                       throws Exception
Specified by:
getWorkListByWriteAccess in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

getWorkListByGroup

public Collection<org.imixs.workflow.ItemCollection> getWorkListByGroup(String name,
                                                                        int startpos,
                                                                        int count,
                                                                        String type,
                                                                        int sortorder)
                                                                 throws Exception
Specified by:
getWorkListByGroup in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

getWorkListByProcessID

public Collection<org.imixs.workflow.ItemCollection> getWorkListByProcessID(int aid,
                                                                            int startpos,
                                                                            int count,
                                                                            String type,
                                                                            int sortorder)
                                                                     throws Exception
Specified by:
getWorkListByProcessID in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

getWorkListByRef

public Collection<org.imixs.workflow.ItemCollection> getWorkListByRef(String aref)
                                                               throws Exception
Specified by:
getWorkListByRef in interface org.imixs.workflow.WorkflowManager
Throws:
Exception

getWorkListByRef

public Collection<org.imixs.workflow.ItemCollection> getWorkListByRef(String aref,
                                                                      int startpos,
                                                                      int count,
                                                                      String type,
                                                                      int sortorder)
                                                               throws Exception
Specified by:
getWorkListByRef in interface org.imixs.workflow.jee.ejb.WorkflowService
Throws:
Exception

processWorkItem

public org.imixs.workflow.ItemCollection processWorkItem(org.imixs.workflow.ItemCollection itemCollection)
                                                  throws org.imixs.workflow.exceptions.AccessDeniedException,
                                                         org.imixs.workflow.exceptions.InvalidWorkitemException,
                                                         org.imixs.workflow.exceptions.ProcessingErrorException
processes a workitem with the provided Activity ID

Specified by:
processWorkItem in interface org.imixs.workflow.WorkflowManager
Throws:
org.imixs.workflow.exceptions.AccessDeniedException
org.imixs.workflow.exceptions.InvalidWorkitemException
org.imixs.workflow.exceptions.ProcessingErrorException

removeWorkItem

public void removeWorkItem(org.imixs.workflow.ItemCollection aworkitem)
                    throws org.imixs.workflow.exceptions.AccessDeniedException,
                           org.imixs.workflow.exceptions.InvalidWorkitemException
Specified by:
removeWorkItem in interface org.imixs.workflow.WorkflowManager
Throws:
org.imixs.workflow.exceptions.AccessDeniedException
org.imixs.workflow.exceptions.InvalidWorkitemException

getDebugLevel

public int getDebugLevel()
Workflow Context

Specified by:
getDebugLevel in interface org.imixs.workflow.WorkflowContext

getModel

public org.imixs.workflow.Model getModel()
This Method returns the modelManager Instance. The current ModelVersion is automatically updated during the Method updateProfileEntity which is called from the processWorktiem method.

Specified by:
getModel in interface org.imixs.workflow.WorkflowContext

getExtendedModel

public org.imixs.workflow.ExtendedModel getExtendedModel()
Specified by:
getExtendedModel in interface org.imixs.workflow.ExtendedWorkflowContext

getSessionContext

public Object getSessionContext()
Specified by:
getSessionContext in interface org.imixs.workflow.WorkflowContext

getEntityService

public org.imixs.workflow.jee.ejb.EntityService getEntityService()
                                                          throws Exception
This method returns an instance of the EntityService used by the WorkflowManager Implementation. The method can be used to access the EntityService from a Plugin call.

Specified by:
getEntityService in interface org.imixs.workflow.jee.ejb.WorkflowService
Returns:
Throws:
Exception

getModelService

public org.imixs.workflow.jee.ejb.ModelService getModelService()
                                                        throws Exception
This method returns an instance of the Imixs JEE ModelService used by the WorkflowManager Implementation. The method can be used to access the ModelService during a Plugin call.

Specified by:
getModelService in interface org.imixs.workflow.jee.ejb.WorkflowService
Returns:
EntityService
Throws:
Exception


Copyright © 2006-2011 Imixs Software Solutions GmbH. All Rights Reserved.