本文整理汇总了Java中org.activiti.engine.impl.jobexecutor.JobHandler类的典型用法代码示例。如果您正苦于以下问题:Java JobHandler类的具体用法?Java JobHandler怎么用?Java JobHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JobHandler类属于org.activiti.engine.impl.jobexecutor包,在下文中一共展示了JobHandler类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initJobExecutor
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
@Override
protected void initJobExecutor()
{
super.initJobExecutor();
// Wrap timer-job handler to handle authentication
JobHandler timerJobHandler = jobHandlers.get(TimerExecuteNestedActivityJobHandler.TYPE);
JobHandler wrappingTimerJobHandler = new AuthenticatedTimerJobHandler(timerJobHandler, unprotectedNodeService);
jobHandlers.put(TimerExecuteNestedActivityJobHandler.TYPE, wrappingTimerJobHandler);
// Wrap async-job handler to handle authentication
JobHandler asyncJobHandler = jobHandlers.get(AsyncContinuationJobHandler.TYPE);
JobHandler wrappingAsyncJobHandler = new AuthenticatedAsyncJobHandler(asyncJobHandler);
jobHandlers.put(AsyncContinuationJobHandler.TYPE, wrappingAsyncJobHandler);
// Wrap intermediate-timer-job handler to handle authentication
JobHandler intermediateJobHandler = jobHandlers.get(TimerCatchIntermediateEventJobHandler.TYPE);
JobHandler wrappingIntermediateJobHandler = new AuthenticatedAsyncJobHandler(intermediateJobHandler);
jobHandlers.put(TimerCatchIntermediateEventJobHandler.TYPE, wrappingIntermediateJobHandler);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:AlfrescoProcessEngineConfiguration.java
示例2: execute
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public void execute(CommandContext commandContext) {
ExecutionEntity execution = null;
if (executionId != null) {
execution = commandContext.getExecutionEntityManager().findExecutionById(executionId);
}
Map<String, JobHandler> jobHandlers = Context.getProcessEngineConfiguration().getJobHandlers();
JobHandler jobHandler = jobHandlers.get(jobHandlerType);
jobHandler.execute(this, jobHandlerConfiguration, execution, commandContext);
delete();
if (repeat != null) {
TimerJobEntity timerRepeatJob = new TimerJobEntity(this);
timerRepeatJob.scheduleNewTimer(commandContext);
}
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:17,代码来源:JobEntity.java
示例3: AuthenticatedAsyncJobHandler
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public AuthenticatedAsyncJobHandler(JobHandler jobHandler)
{
if (jobHandler == null)
{
throw new IllegalArgumentException("JobHandler to delegate to is required");
}
this.wrappedHandler = jobHandler;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:9,代码来源:AuthenticatedAsyncJobHandler.java
示例4: AuthenticatedTimerJobHandler
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
/**
* @param jobHandler the {@link JobHandler} to wrap.
* @param nodeService the UNPROTECTED {@link NodeService} to use for fetching initiator username
* when only tenant is known. We can't use initiator ScriptNode for this, because this uses the
* protected {@link NodeService} which requires an authenticated user in that tenant (see {@link #getInitiator(ActivitiScriptNode)}).
*/
public AuthenticatedTimerJobHandler(JobHandler jobHandler, NodeService nodeService)
{
if (jobHandler == null)
{
throw new IllegalArgumentException("JobHandler to delegate to is required");
}
if(nodeService == null)
{
throw new IllegalArgumentException("NodeService is required");
}
this.unprotectedNodeService = nodeService;
this.wrappedHandler = jobHandler;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:20,代码来源:AuthenticatedTimerJobHandler.java
示例5: initJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
protected void initJobHandlers() {
jobHandlers = new HashMap<>();
TimerExecuteNestedActivityJobHandler timerExecuteNestedActivityJobHandler = new TimerExecuteNestedActivityJobHandler();
jobHandlers.put(timerExecuteNestedActivityJobHandler.getType(), timerExecuteNestedActivityJobHandler);
TimerCatchIntermediateEventJobHandler timerCatchIntermediateEvent = new TimerCatchIntermediateEventJobHandler();
jobHandlers.put(timerCatchIntermediateEvent.getType(), timerCatchIntermediateEvent);
TimerStartEventJobHandler timerStartEvent = new TimerStartEventJobHandler();
jobHandlers.put(timerStartEvent.getType(), timerStartEvent);
AsyncContinuationJobHandler asyncContinuationJobHandler = new AsyncContinuationJobHandler();
jobHandlers.put(asyncContinuationJobHandler.getType(), asyncContinuationJobHandler);
ProcessEventJobHandler processEventJobHandler = new ProcessEventJobHandler();
jobHandlers.put(processEventJobHandler.getType(), processEventJobHandler);
TimerSuspendProcessDefinitionHandler suspendProcessDefinitionHandler = new TimerSuspendProcessDefinitionHandler();
jobHandlers.put(suspendProcessDefinitionHandler.getType(), suspendProcessDefinitionHandler);
TimerActivateProcessDefinitionHandler activateProcessDefinitionHandler = new TimerActivateProcessDefinitionHandler();
jobHandlers.put(activateProcessDefinitionHandler.getType(), activateProcessDefinitionHandler);
// if we have custom job handlers, register them
if (getCustomJobHandlers() != null) {
for (JobHandler customJobHandler : getCustomJobHandlers()) {
jobHandlers.put(customJobHandler.getType(), customJobHandler);
}
}
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:31,代码来源:ProcessEngineConfigurationImpl.java
示例6: execute
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public void execute(CommandContext commandContext) {
// set endDate if it was set to the definition
restoreExtraData(commandContext, jobHandlerConfiguration);
if (this.getDuedate() != null && !isValidTime(this.getDuedate())) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Timer {} fired. but the dueDate is after the endDate. Deleting timer.", getId());
}
delete();
return;
}
ExecutionEntity execution = null;
if (executionId != null) {
execution = commandContext.getExecutionEntityManager().findExecutionById(executionId);
}
Map<String, JobHandler> jobHandlers = Context.getProcessEngineConfiguration().getJobHandlers();
JobHandler jobHandler = jobHandlers.get(jobHandlerType);
jobHandler.execute(this, jobHandlerConfiguration, execution, commandContext);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Timer {} fired. Deleting timer.", getId());
}
delete();
scheduleNextTimerIfRepeat();
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:30,代码来源:TimerJobEntity.java
示例7: execute
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public void execute(CommandContext commandContext) {
ExecutionEntity execution = null;
if (executionId != null) {
execution = commandContext.getExecutionManager().findExecutionById(executionId);
}
Map<String, JobHandler> jobHandlers = Context.getProcessEngineConfiguration().getJobHandlers();
JobHandler jobHandler = jobHandlers.get(jobHandlerType);
jobHandler.execute(jobHandlerConfiguration, execution, commandContext);
}
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:12,代码来源:JobEntity.java
示例8: execute
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public void execute(CommandContext commandContext) {
ExecutionEntity execution = null;
if (executionId != null) {
execution = commandContext.getExecutionEntityManager().findExecutionById(executionId);
}
Map<String, JobHandler> jobHandlers = Context.getProcessEngineConfiguration().getJobHandlers();
JobHandler jobHandler = jobHandlers.get(jobHandlerType);
jobHandler.execute(this, jobHandlerConfiguration, execution, commandContext);
}
开发者ID:springvelocity,项目名称:xbpm5,代码行数:12,代码来源:JobEntity.java
示例9: getJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public Map<String, JobHandler> getJobHandlers() {
return jobHandlers;
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java
示例10: setJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setJobHandlers(Map<String, JobHandler> jobHandlers) {
this.jobHandlers = jobHandlers;
return this;
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java
示例11: getCustomJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public List<JobHandler> getCustomJobHandlers() {
return customJobHandlers;
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java
示例12: setCustomJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setCustomJobHandlers(List<JobHandler> customJobHandlers) {
this.customJobHandlers = customJobHandlers;
return this;
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java
示例13: getJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public Map<String, JobHandler> getJobHandlers() {
return jobHandlers;
}
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java
示例14: setJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setJobHandlers(Map<String, JobHandler> jobHandlers) {
this.jobHandlers = jobHandlers;
return this;
}
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java
示例15: getCustomJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public List<JobHandler> getCustomJobHandlers() {
return customJobHandlers;
}
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java
示例16: setCustomJobHandlers
import org.activiti.engine.impl.jobexecutor.JobHandler; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setCustomJobHandlers(List<JobHandler> customJobHandlers) {
this.customJobHandlers = customJobHandlers;
return this;
}
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java
注:本文中的org.activiti.engine.impl.jobexecutor.JobHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论