本文整理汇总了Java中org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler类的典型用法代码示例。如果您正苦于以下问题:Java AsyncContinuationJobHandler类的具体用法?Java AsyncContinuationJobHandler怎么用?Java AsyncContinuationJobHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AsyncContinuationJobHandler类属于org.activiti.engine.impl.jobexecutor包,在下文中一共展示了AsyncContinuationJobHandler类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initJobExecutor
import org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler; //导入依赖的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: initJobHandlers
import org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler; //导入依赖的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
示例3: scheduleAtomicOperationAsync
import org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler; //导入依赖的package包/类
protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation) {
JobEntity message = new JobEntity();
message.setJobType(Job.JOB_TYPE_MESSAGE);
message.setRevision(1);
message.setExecution(this);
message.setExclusive(getActivity().isExclusive());
message.setJobHandlerType(AsyncContinuationJobHandler.TYPE);
// At the moment, only AtomicOperationTransitionCreateScope can be performed asynchronously,
// so there is no need to pass it to the handler
ProcessEngineConfiguration processEngineConfig = Context.getCommandContext().getProcessEngineConfiguration();
if (processEngineConfig.getAsyncExecutor().isActive()) {
GregorianCalendar expireCal = new GregorianCalendar();
expireCal.setTime(processEngineConfig.getClock().getCurrentTime());
expireCal.add(Calendar.SECOND, processEngineConfig.getLockTimeAsyncJobWaitTime());
message.setLockExpirationTime(expireCal.getTime());
}
// Inherit tenant id (if applicable)
if (getTenantId() != null) {
message.setTenantId(getTenantId());
}
callJobProcessors(JobProcessorContext.Phase.BEFORE_CREATE, message, Context.getProcessEngineConfiguration());
Context.getCommandContext().getJobEntityManager().send(message);
}
开发者ID:flowable,项目名称:flowable-engine,代码行数:28,代码来源:ExecutionEntity.java
示例4: scheduleAtomicOperationAsync
import org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler; //导入依赖的package包/类
protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation) {
MessageEntity message = new MessageEntity();
message.setExecution(this);
message.setJobHandlerType(AsyncContinuationJobHandler.TYPE);
// At the moment, only AtomicOperationTransitionCreateScope can be performed asynchronously,
// so there is no need to pass it to the handler
Context
.getCommandContext()
.getJobManager()
.send(message);
}
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:13,代码来源:ExecutionEntity.java
示例5: scheduleAtomicOperationAsync
import org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler; //导入依赖的package包/类
protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation) {
MessageEntity message = new MessageEntity();
message.setExecution(this);
message.setExclusive(getActivity().isExclusive());
message.setJobHandlerType(AsyncContinuationJobHandler.TYPE);
// At the moment, only AtomicOperationTransitionCreateScope can be performed asynchronously,
// so there is no need to pass it to the handler
Context
.getCommandContext()
.getJobManager()
.send(message);
}
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:14,代码来源:ExecutionEntity.java
示例6: scheduleAtomicOperationAsync
import org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler; //导入依赖的package包/类
protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation) {
MessageEntity message = new MessageEntity();
message.setExecution(this);
message.setExclusive(getActivity().isExclusive());
message.setJobHandlerType(AsyncContinuationJobHandler.TYPE);
// At the moment, only AtomicOperationTransitionCreateScope can be performed asynchronously,
// so there is no need to pass it to the handler
Context
.getCommandContext()
.getJobEntityManager()
.send(message);
}
开发者ID:springvelocity,项目名称:xbpm5,代码行数:14,代码来源:ExecutionEntity.java
注:本文中的org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论