Package org.activiti.cdi.annotation

Examples of org.activiti.cdi.annotation.CompleteTask


  @AroundInvoke
  public Object invoke(InvocationContext ctx) throws Exception {
    try {
      Object result = ctx.proceed();

      CompleteTask completeTaskAnnotation = ctx.getMethod().getAnnotation(CompleteTask.class);
      boolean endConversation = completeTaskAnnotation.endConversation();   
      businessProcess.completeTask(endConversation);    

      return result;
    } catch (InvocationTargetException e) {
      throw new ActivitiCdiException("Error while completing task: "+e.getCause().getMessage(), e.getCause());
View Full Code Here

TOP

Related Classes of org.activiti.cdi.annotation.CompleteTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.