|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imixs.workflow.jee.ejb.WorkflowSchedulerBean
@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class WorkflowSchedulerBean
This is the implementation of a scheduled workflow service. The EJB implementation can be used as a Timer Service to process scheduled workflow activities. A scheduled workflow activity can be defined using the IX Workflow modeller. The service verifies if a workitem should be processed scheduled and processes such a workitem automatically. The TimerService can be started using the method scheduleWorkflow. The Methods findTimerDescription and findAllTimerDescriptions are used to lookup enabled and running service instances. Each Method expects or generates a TimerDescription Object. This object is an instance of a ItemCollection. To create a new timer the ItemCollection should contain the following attributes: datstart - Date Object datstop - Date Object numInterval - Integer Object (interval in seconds) id - String - unique identifier for the schedule Service. $modelversion - String - identifies the model which schould be managed by the service the following additional attributes are generated by the finder methods and can be used by an application to verfiy the status of a running instance: nextTimeout - Next Timeout - pint of time when the service will be scheduled timeRemaining - Timeout in milliseconds statusmessage - text message How a worklist will be processed: If the ActivityEntity has defined a EQL statement (attribute txtscheduledview) then the method selects the workitems by this query. Otherwise the method use the standard method getWorklistByProcessID()
| Constructor Summary | |
|---|---|
WorkflowSchedulerBean()
|
|
| Method Summary | |
|---|---|
void |
cancelScheduleWorkflow(String id)
Cancels a running timer instance. |
Collection<org.imixs.workflow.ItemCollection> |
findAllTimerDescriptions()
This method returns a collection of running timerServices. |
org.imixs.workflow.ItemCollection |
findTimerDescription(String id)
This Method lookups a TimerService. |
void |
processWorkItems(javax.ejb.Timer timer)
This is the mehtod which processed scheuduled workitems when the timer is called. |
void |
scheduleWorkflow(org.imixs.workflow.ItemCollection timerdescription)
This Method starts a new TimerService. |
boolean |
workItemInDue(org.imixs.workflow.ItemCollection doc,
org.imixs.workflow.ItemCollection docActivity)
This method checks if a workitem (doc) is in due. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowSchedulerBean()
| Method Detail |
|---|
public void scheduleWorkflow(org.imixs.workflow.ItemCollection timerdescription)
throws Exception
scheduleWorkflow in interface org.imixs.workflow.jee.ejb.WorkflowSchedulerException
public org.imixs.workflow.ItemCollection findTimerDescription(String id)
throws Exception
findTimerDescription in interface org.imixs.workflow.jee.ejb.WorkflowSchedulerid - identifies the timer object
Exception
public Collection<org.imixs.workflow.ItemCollection> findAllTimerDescriptions()
throws Exception
findAllTimerDescriptions in interface org.imixs.workflow.jee.ejb.WorkflowSchedulerException
public void cancelScheduleWorkflow(String id)
throws Exception
cancelScheduleWorkflow in interface org.imixs.workflow.jee.ejb.WorkflowSchedulerExceptionpublic void processWorkItems(javax.ejb.Timer timer)
timer -
public boolean workItemInDue(org.imixs.workflow.ItemCollection doc,
org.imixs.workflow.ItemCollection docActivity)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||