org.camunda.bpm.engine.spring.components.aop
Class ProcessStartingPointcutAdvisor

java.lang.Object
  extended by org.camunda.bpm.engine.spring.components.aop.ProcessStartingPointcutAdvisor
All Implemented Interfaces:
Serializable, org.springframework.aop.Advisor, org.springframework.aop.PointcutAdvisor

public class ProcessStartingPointcutAdvisor
extends Object
implements org.springframework.aop.PointcutAdvisor, Serializable

AOP advice for methods annotated with (by default) StartProcess. Advised methods start a process after the method executes. Advised methods can declare a return type of ProcessInstance and then subsequently return null. The real return ProcessInstance value will be given by the aspect.

Since:
5.3
Author:
Josh Long
See Also:
Serialized Form

Field Summary
protected  org.aopalliance.intercept.MethodInterceptor advice
          the MethodInterceptor that handles launching the business process.
protected  org.springframework.aop.Pointcut pointcut
          matches any method containing the StartProcess annotation.
protected  ProcessEngine processEngine
          the injected reference to the ProcessEngine
 
Constructor Summary
ProcessStartingPointcutAdvisor(ProcessEngine pe)
           
 
Method Summary
protected  org.aopalliance.intercept.MethodInterceptor buildAdvise()
           
 org.aopalliance.aop.Advice getAdvice()
           
 org.springframework.aop.Pointcut getPointcut()
           
 boolean isPerInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

advice

protected org.aopalliance.intercept.MethodInterceptor advice
the MethodInterceptor that handles launching the business process.


pointcut

protected org.springframework.aop.Pointcut pointcut
matches any method containing the StartProcess annotation.


processEngine

protected ProcessEngine processEngine
the injected reference to the ProcessEngine

Constructor Detail

ProcessStartingPointcutAdvisor

public ProcessStartingPointcutAdvisor(ProcessEngine pe)
Method Detail

buildAdvise

protected org.aopalliance.intercept.MethodInterceptor buildAdvise()

getPointcut

public org.springframework.aop.Pointcut getPointcut()
Specified by:
getPointcut in interface org.springframework.aop.PointcutAdvisor

getAdvice

public org.aopalliance.aop.Advice getAdvice()
Specified by:
getAdvice in interface org.springframework.aop.Advisor

isPerInstance

public boolean isPerInstance()
Specified by:
isPerInstance in interface org.springframework.aop.Advisor


Copyright © 2017 camunda services GmbH. All rights reserved.