• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DelegateInvocation类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.activiti.engine.impl.delegate.DelegateInvocation的典型用法代码示例。如果您正苦于以下问题:Java DelegateInvocation类的具体用法?Java DelegateInvocation怎么用?Java DelegateInvocation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DelegateInvocation类属于org.activiti.engine.impl.delegate包,在下文中一共展示了DelegateInvocation类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: handleInvocation

点赞 3

import org.activiti.engine.impl.delegate.DelegateInvocation; //导入依赖的package包/类
@Override
public void handleInvocation(DelegateInvocation invocation) throws Exception
{
    // The delegate tasks are not spring managed, but we need Spring beans wired in.
    // So if the invocation target is a sub-class of BaseJavaDelegate, autowire the Spring beans.
    if (invocation.getTarget() instanceof BaseJavaDelegate)
    {
        BaseJavaDelegate javaDelegate = (BaseJavaDelegate) invocation.getTarget();
        if (!javaDelegate.isSpringInitialized())
        {
            autowireCapableBeanFactory.autowireBean(javaDelegate);
            javaDelegate.setSpringInitialized(true);
        }
    }

    invocation.proceed();
}
 

开发者ID:FINRAOS,
项目名称:herd,
代码行数:18,
代码来源:HerdDelegateInterceptor.java

示例2: handleInvocation

点赞 2

import org.activiti.engine.impl.delegate.DelegateInvocation; //导入依赖的package包/类
public void handleInvocation(DelegateInvocation invocation) throws Exception {
  
  invocation.proceed();
  
  CachingBeanStore beanStore = getAssociationManager().getBeanStore();
  ExecutionEntity execution = Context.getExecutionContext().getExecution();
  execution.setVariables(beanStore.getAllAndClear());
}
 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:9,
代码来源:CdiProcessVariableFlushingDelegateInterceptor.java

示例3: handleInvocation

点赞 2

import org.activiti.engine.impl.delegate.DelegateInvocation; //导入依赖的package包/类
public void handleInvocation(DelegateInvocation invocation) throws Exception {
  
  invocation.proceed();
  
  ExecutionEntity execution = null;
  try {
    execution = Context.getExecutionContext().getExecution();
  } catch (EmptyStackException e) {
    // silently ignore, not called in the context of an execution.
    return;
  }
  CachingBeanStore beanStore = getAssociationManager().getBeanStore();
  execution.setVariables(beanStore.getAllAndClear());

}
 

开发者ID:iotsap,
项目名称:FiWare-Template-Handler,
代码行数:16,
代码来源:CdiProcessVariableFlushingDelegateInterceptor.java

示例4: handleInvocation

点赞 1

import org.activiti.engine.impl.delegate.DelegateInvocation; //导入依赖的package包/类
public void handleInvocation(DelegateInvocation invocation); 

开发者ID:flowable,
项目名称:flowable-engine,
代码行数:2,
代码来源:DelegateInterceptor.java

示例5: handleInvocation

点赞 1

import org.activiti.engine.impl.delegate.DelegateInvocation; //导入依赖的package包/类
public void handleInvocation(DelegateInvocation invocation) throws Exception; 

开发者ID:logicalhacking,
项目名称:SecureBPMN,
代码行数:2,
代码来源:DelegateInterceptor.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)