Package org.imixs.workflow.engine
Klasse WorkflowScheduler
java.lang.Object
org.imixs.workflow.engine.WorkflowScheduler
- Alle implementierten Schnittstellen:
Scheduler
This EJB implements a Imixs Scheduler Interface and scans workitems for
scheduled activities.
The configuration of the scheduler is based on the Imixs Scheduler API.
- Version:
- 1.0
- Autor:
- rsoika
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intprotected jakarta.enterprise.inject.Instance<QuerySelector> Von Schnittstelle geerbte Felder org.imixs.workflow.engine.scheduler.Scheduler
ITEM_ERRORMESSAGE, ITEM_LOGMESSAGE, ITEM_SCHEDULER_CLASS, ITEM_SCHEDULER_DEFINITION, ITEM_SCHEDULER_ENABLED, ITEM_SCHEDULER_NAME, ITEM_SCHEDULER_STATUS -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaddWorkDays(Calendar baseDate, int days) This method adds workdays (MONDAY - FRIDAY) to a given calendar object.protected voidprocessWorkListByEvent(org.openbpmn.bpmn.BPMNModel model, ItemCollection taskEntity, ItemCollection eventEntity, ItemCollection configItemCollection) This method processes all workitems for a specific scheduled event element of a workflow model.run(ItemCollection configItemCollection) This method process scheduled workitems.booleanworkItemInDue(ItemCollection doc, ItemCollection docActivity) This method checks if a workitem (doc) is in due.
-
Felddetails
-
NAME
- Siehe auch:
-
OFFSET_SECONDS
public static final int OFFSET_SECONDS- Siehe auch:
-
OFFSET_MINUTES
public static final int OFFSET_MINUTES- Siehe auch:
-
OFFSET_HOURS
public static final int OFFSET_HOURS- Siehe auch:
-
OFFSET_DAYS
public static final int OFFSET_DAYS- Siehe auch:
-
OFFSET_WORKDAYS
public static final int OFFSET_WORKDAYS- Siehe auch:
-
selectors
-
-
Konstruktordetails
-
WorkflowScheduler
public WorkflowScheduler()
-
-
Methodendetails
-
workItemInDue
This method checks if a workitem (doc) is in due. There are 4 different cases which will be compared: The case is determined by the keyScheduledBaseObject of the activity entity Basis : keyScheduledBaseObject "last process"=1, "last Modification"=2 "Creation"=3 "Field"=4 The logic is not the best one but it works. So we are open for any kind of improvements- Gibt zurück:
- true if workitem is is due
-
addWorkDays
This method adds workdays (MONDAY - FRIDAY) to a given calendar object. If the number of days is negative than this method subtracts the working days from the calendar object.- Parameter:
days-cal-- Gibt zurück:
- new calendar instance
-
run
This method process scheduled workitems. The method updates the property 'datLastRun' Because of bug: https://java.net/jira/browse/GLASSFISH-20673 we check the imixsDayOfWeek- Angegeben von:
runin SchnittstelleScheduler- Parameter:
timer-- Gibt zurück:
- updated scheduler configuration
- Löst aus:
AccessDeniedExceptionSchedulerException
-
processWorkListByEvent
protected void processWorkListByEvent(org.openbpmn.bpmn.BPMNModel model, ItemCollection taskEntity, ItemCollection eventEntity, ItemCollection configItemCollection) throws ModelException, QueryException This method processes all workitems for a specific scheduled event element of a workflow model. A scheduled event element can define a selector (txtscheduledview). If no selector is defined, the default selector is used:($taskid:"[TASKID]" AND $modelversion:"[MODELVERSION]")- Parameter:
event- - a event model element- Löst aus:
ModelExceptionQueryExceptionException
-