@Service(value="blAbandonedProcessWorker") public class AbandonedProcessWorkerImpl extends AbstractConsumerWorker
ProcessStatus.getLastUpdated()
time to the current
db server time for all active ProcessStatus instances.Modifier and Type | Field and Description |
---|---|
protected int |
abandonedHandleThresholdSeconds |
protected int |
abandonedPurgeThresholdSeconds |
protected ScheduledJobManager |
jobManager |
protected ProcessDao |
processDao |
protected ProcessManager |
processManager |
protected org.springframework.context.ApplicationEventPublisher |
publisher |
protected org.springframework.transaction.PlatformTransactionManager |
transactionManager |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
Constructor and Description |
---|
AbandonedProcessWorkerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
int |
getAbandonedHandleThresholdSeconds()
The quantity of time for which a ProcessStatus must be abandoned (i.e.
|
int |
getAbandonedPurgeThresholdSeconds()
The quantity of time for which a ProcessStatus must be archived before it is a candidate for deletion.
|
protected void |
handleAbandonedProcesses() |
void |
init() |
protected void |
performAdditionalCleanup() |
protected void |
purgeOldProcesses() |
populateSystemEvents
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected ProcessDao processDao
protected ProcessManager processManager
protected ScheduledJobManager jobManager
@Autowired protected org.springframework.context.ApplicationEventPublisher publisher
@Value(value="${process.abandoned.handle.threshold.seconds:60}") protected int abandonedHandleThresholdSeconds
@Value(value="${process.abandoned.purge.threshold.seconds:2592000}") protected int abandonedPurgeThresholdSeconds
@PostConstruct public void init()
public void execute(org.quartz.JobExecutionContext jobExecutionContext)
protected void purgeOldProcesses()
protected void handleAbandonedProcesses()
protected void performAdditionalCleanup()
public int getAbandonedHandleThresholdSeconds()
ProcessStatus.getLastUpdated()
)
before it is a candidate for abandoned handling. The default value is 60 seconds. Handling generally takes the form
of an attempt to resume the process, but can really be any operation that makes sense for rectifying a process that
has been abandoned for any reason. See HandleAbandonedProcessEvent
for more information on creating listeners to handle abandoned processes.public int getAbandonedPurgeThresholdSeconds()
Copyright © 2019. All rights reserved.