public class BulkCreateActivityWorkflow.ActivityCreatorThread extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
BulkCreateActivityWorkflow.ActivityCreatorThread(javax.jdo.PersistenceManagerFactory pmf,
org.openmdx.base.naming.Path wfProcessInstanceIdentity,
org.openmdx.base.naming.Path activityCreatorIdentity,
BulkCreateActivityWorkflow.CollectionBasedQueue selectedObjects,
List<org.openmdx.base.naming.Path> additionalAccounts,
List<org.openmdx.base.naming.Path> additionalAddresses,
int threadIndex,
int limit,
Boolean excludeNoBulkEMail,
String name,
String description,
String detailedDescription,
Date dueBy,
short priority,
Date scheduledEnd,
Date scheduledStart,
org.openmdx.base.naming.Path emailSenderIdentity,
List<Short> emailAddressUsages,
String emailMessageSubject,
String emailMessageBody,
Properties defaultPlaceHolders,
short locale)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createOrUpdateActivity(Object selectedObject)
Create or update activity for given object.
|
protected EMailAddress |
findEMailAddress(Account account,
List<Short> usages,
Boolean excludeNoBulkEMail)
Find account's e-mail address.
|
int |
getCounter() |
int |
getNumberFailed() |
int |
getNumberOfAccountsWithoutEmailAddress() |
int |
getNumberOfActivitiesCreated() |
int |
getNumberOfActivitiesSkipped() |
int |
getNumberOfActivitiesUpdated() |
void |
run() |
protected void |
updateEMailRecipient(EMail email,
EMailAddress emailAddress,
Activities.PartyType partyType)
Update e-mail recipient.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic BulkCreateActivityWorkflow.ActivityCreatorThread(javax.jdo.PersistenceManagerFactory pmf,
org.openmdx.base.naming.Path wfProcessInstanceIdentity,
org.openmdx.base.naming.Path activityCreatorIdentity,
BulkCreateActivityWorkflow.CollectionBasedQueue selectedObjects,
List<org.openmdx.base.naming.Path> additionalAccounts,
List<org.openmdx.base.naming.Path> additionalAddresses,
int threadIndex,
int limit,
Boolean excludeNoBulkEMail,
String name,
String description,
String detailedDescription,
Date dueBy,
short priority,
Date scheduledEnd,
Date scheduledStart,
org.openmdx.base.naming.Path emailSenderIdentity,
List<Short> emailAddressUsages,
String emailMessageSubject,
String emailMessageBody,
Properties defaultPlaceHolders,
short locale)
throws org.openmdx.base.exception.ServiceException
pmf - wfProcessInstanceIdentity - activityCreatorIdentity - selectedObjects - additionalAccounts - additionalAddresses - threadIndex - limit - excludeNoBulkEMail - name - description - detailedDescription - dueBy - priority - scheduledEnd - scheduledStart - emailSenderIdentity - emailAddressUsages - emailMessageSubject - emailMessageBody - defaultPlaceHolders - locale - codes - org.openmdx.base.exception.ServiceExceptionprotected void updateEMailRecipient(EMail email, EMailAddress emailAddress, Activities.PartyType partyType) throws org.openmdx.base.exception.ServiceException
email - emailAddress - partyType - org.openmdx.base.exception.ServiceExceptionprotected EMailAddress findEMailAddress(Account account, List<Short> usages, Boolean excludeNoBulkEMail) throws org.openmdx.base.exception.ServiceException
account - usages - excludeNoBulkEMail - org.openmdx.base.exception.ServiceExceptionprotected void createOrUpdateActivity(Object selectedObject) throws org.openmdx.base.exception.ServiceException
selectedObject - org.openmdx.base.exception.ServiceExceptionpublic int getCounter()
public int getNumberOfActivitiesCreated()
public int getNumberOfActivitiesUpdated()
public int getNumberOfAccountsWithoutEmailAddress()
public int getNumberOfActivitiesSkipped()
public int getNumberFailed()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.