@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 |
|---|---|
static 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.
|
static 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
AccessDeniedExceptionpublic ItemCollection start() throws AccessDeniedException, ParseException
AccessDeniedExceptionParseExceptionpublic ItemCollection stop() throws AccessDeniedException
AccessDeniedExceptionpublic boolean isRunning()
public static boolean workItemInDue(ItemCollection doc, ItemCollection docActivity)
public static Calendar addWorkDays(Calendar baseDate, int days)
cal - days - public void processSingleWorkitem(ItemCollection aWorkitem) throws AccessDeniedException, ProcessingErrorException, PluginException
aWorkitem - PluginExceptionProcessingErrorExceptionAccessDeniedExceptionCopyright © 2006–2017 Imixs Software Solutions GmbH. All rights reserved.