@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class WorkflowSchedulerService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static int |
OFFSET_DAYS |
static int |
OFFSET_HOURS |
static int |
OFFSET_MINUTES |
static int |
OFFSET_SECONDS |
static int |
OFFSET_WORKDAYS |
static String |
TYPE_CONFIGURATION |
Constructor and Description |
---|
WorkflowSchedulerService() |
Modifier and Type | Method and Description |
---|---|
Calendar |
addWorkDays(Calendar baseDate,
int days)
This method adds workdays (MONDAY - FRIDAY) to a given calendar object.
|
boolean |
isRunning()
Returns true if the workflowSchedulerService was started
|
ItemCollection |
loadConfiguration()
This method loads the current scheduler configuration.
|
void |
processSingleWorkitem(ItemCollection aWorkitem)
This method process a single workIten in a new transaction.
|
ItemCollection |
saveConfiguration(ItemCollection configItemCollection)
This method saves the timer configuration.
|
ItemCollection |
start()
This Method starts the TimerService.
|
ItemCollection |
stop()
Stops a running timer instance.
|
boolean |
workItemInDue(ItemCollection doc,
ItemCollection docActivity)
This method checks if a workitem (doc) is in due.
|
public static final String TYPE_CONFIGURATION
public static final String NAME
public static final int OFFSET_SECONDS
public static final int OFFSET_MINUTES
public static final int OFFSET_HOURS
public static final int OFFSET_DAYS
public static final int OFFSET_WORKDAYS
public ItemCollection loadConfiguration()
public ItemCollection saveConfiguration(ItemCollection configItemCollection) throws AccessDeniedException
AccessDeniedException
public ItemCollection start() throws AccessDeniedException, ParseException
AccessDeniedException
ParseException
public ItemCollection stop() throws AccessDeniedException
AccessDeniedException
public boolean isRunning()
public boolean workItemInDue(ItemCollection doc, ItemCollection docActivity)
public Calendar addWorkDays(Calendar baseDate, int days)
cal
- days
- public void processSingleWorkitem(ItemCollection aWorkitem) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelException
aWorkitem
- PluginException
ProcessingErrorException
AccessDeniedException
ModelException
Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.