public class BulkCreateActivityWorkflow extends Workflows.AsynchronousWorkflow
Modifier and Type | Class and Description |
---|---|
class |
BulkCreateActivityWorkflow.ActivityCreatorThread
ActivityCreatorThread
|
static class |
BulkCreateActivityWorkflow.CollectionBasedQueue
Queue returning object identities based on given object collection thread-safe.
|
static class |
BulkCreateActivityWorkflow.CreationType
CreationType
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_THREADS |
static int |
NUM_OF_TEST_ACTIVITIES |
static String |
OPTION_ACCOUNTS_SELECTOR |
static String |
OPTION_ACTIVITY_DESCRIPTION |
static String |
OPTION_ACTIVITY_DETAILED_DESCRIPTION |
static String |
OPTION_ACTIVITY_DUE_BY |
static String |
OPTION_ACTIVITY_NAME |
static String |
OPTION_ACTIVITY_PRIORITY |
static String |
OPTION_ACTIVITY_SCHEDULED_END |
static String |
OPTION_ACTIVITY_SCHEDULED_START |
static String |
OPTION_CREATION_TYPE |
static String |
OPTION_DEFAULT_PLACEHOLDERS |
static String |
OPTION_EMAIL_ADDRESS_USAGE |
static String |
OPTION_EMAIL_MESSAGE_BODY |
static String |
OPTION_EMAIL_MESSAGE_SUBJECT |
static String |
OPTION_EMAIL_SENDER |
static String |
OPTION_EXCLUDE_NO_BULK_EMAIL |
static String |
OPTION_IGNORE_EXECUTION_TIME_LIMIT |
static String |
OPTION_LOCALE |
static String |
OPTION_TEST_ACCOUNT |
static String |
OPTION_TEST_EMAIL |
Constructor and Description |
---|
BulkCreateActivityWorkflow() |
Modifier and Type | Method and Description |
---|---|
protected void |
createLogEntry(String name,
WfProcessInstance wfProcessInstance,
int numberOfActivities,
int numberOfAccountsWithoutEmailAddress,
int numberOfActivitiesCreated,
int numberOfActivitiesUpdated,
int numberOfActivitiesSkipped,
int numberFailed)
Create log entry.
|
protected void |
createLogEntry(String name,
WfProcessInstance wfProcessInstance,
long queryExecutionTime,
long queryExecutionTimeLimit,
int numberOfActivities)
Create log entry.
|
void |
execute(WfProcessInstance wfProcessInstance)
Execute the workflow specified by wfProcessInstance.
|
String |
getPlaceHolderValue(String name,
String defaultValue,
short locale,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context,
org.openmdx.portal.servlet.Codes codes)
Get place holder value.
|
protected List<?> |
getSelectedObjects(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 selector)
Get objects selected by selector.
|
String |
replacePlaceHolders(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context,
short locale,
String text,
Properties defaultPlaceHolders,
org.openmdx.portal.servlet.Codes codes)
Replace place holder with its value.
|
void |
updatePlaceHolders(Properties placeHolders,
String text)
Update place holders in text.
|
isAtomic
public static final int NUM_OF_TEST_ACTIVITIES
public static final int MAX_THREADS
public static final String OPTION_LOCALE
public static final String OPTION_DEFAULT_PLACEHOLDERS
public static final String OPTION_ACCOUNTS_SELECTOR
public static final String OPTION_CREATION_TYPE
public static final String OPTION_ACTIVITY_NAME
public static final String OPTION_ACTIVITY_DESCRIPTION
public static final String OPTION_ACTIVITY_DETAILED_DESCRIPTION
public static final String OPTION_ACTIVITY_PRIORITY
public static final String OPTION_ACTIVITY_SCHEDULED_START
public static final String OPTION_ACTIVITY_SCHEDULED_END
public static final String OPTION_ACTIVITY_DUE_BY
public static final String OPTION_EMAIL_SENDER
public static final String OPTION_EMAIL_MESSAGE_SUBJECT
public static final String OPTION_EMAIL_MESSAGE_BODY
public static final String OPTION_EMAIL_ADDRESS_USAGE
public static final String OPTION_TEST_ACCOUNT
public static final String OPTION_TEST_EMAIL
public static final String OPTION_EXCLUDE_NO_BULK_EMAIL
public static final String OPTION_IGNORE_EXECUTION_TIME_LIMIT
protected List<?> getSelectedObjects(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 selector)
public String getPlaceHolderValue(String name, String defaultValue, short locale, org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context, org.openmdx.portal.servlet.Codes codes) throws org.openmdx.base.exception.ServiceException
name
- feature namedefaultValue
- locale
- context
- null or a LocalizedFieldContainercodes
- if null, no code translation is made in case the value is of type short and the feature is coded.org.openmdx.base.exception.ServiceException
public String replacePlaceHolders(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 context, short locale, String text, Properties defaultPlaceHolders, org.openmdx.portal.servlet.Codes codes) throws org.openmdx.base.exception.ServiceException
context
- locale
- text
- defaultPlaceHolders
- codes
- org.openmdx.base.exception.ServiceException
public void updatePlaceHolders(Properties placeHolders, String text)
placeHolders
- text
- protected void createLogEntry(String name, WfProcessInstance wfProcessInstance, int numberOfActivities, int numberOfAccountsWithoutEmailAddress, int numberOfActivitiesCreated, int numberOfActivitiesUpdated, int numberOfActivitiesSkipped, int numberFailed) throws org.openmdx.base.exception.ServiceException
wfProcessInstance
- numberOfAccounts
- numberOfAddresses
- numberOfAccountsWithoutEmailAddress
- numberOfActivitiesCreated
- numberOfActivitiesUpdated
- numberFailed
- org.openmdx.base.exception.ServiceException
protected void createLogEntry(String name, WfProcessInstance wfProcessInstance, long queryExecutionTime, long queryExecutionTimeLimit, int numberOfActivities) throws org.openmdx.base.exception.ServiceException
name
- wfProcessInstance
- queryExecutionTime
- queryExecutionTimeLimit
- numberOfActivities
- org.openmdx.base.exception.ServiceException
public void execute(WfProcessInstance wfProcessInstance) throws org.openmdx.base.exception.ServiceException
Workflows.AsynchronousWorkflow
execute
in class Workflows.AsynchronousWorkflow
org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.