Package org.activiti.engine.impl.bpmn.helper

Examples of org.activiti.engine.impl.bpmn.helper.ClassDelegate


    ENTITY_MAPPING.put("process-instance", ProcessInstance.class);
    ENTITY_MAPPING.put("task", Task.class);
  }

  public TaskListener createClassDelegateTaskListener(ActivitiListener activitiListener) {
    return new ClassDelegate(activitiListener.getImplementation(), createFieldDeclarations(activitiListener.getFieldExtensions()));
  }
View Full Code Here


    return new DelegateExpressionTaskListener(expressionManager.createExpression(activitiListener.getImplementation()),
            createFieldDeclarations(activitiListener.getFieldExtensions()));
  }

  public ExecutionListener createClassDelegateExecutionListener(ActivitiListener activitiListener) {
    return new ClassDelegate(activitiListener.getImplementation(), createFieldDeclarations(activitiListener.getFieldExtensions()));
  }
View Full Code Here

  }

  // Service task
 
  public ClassDelegate createClassDelegateServiceTask(ServiceTask serviceTask) {
    return new ClassDelegate(serviceTask.getImplementation(), createFieldDeclarations(serviceTask.getFieldExtensions()));
  }
View Full Code Here

     
      return createNoOpServiceTask(serviceTask);
     
    } else if (serviceTask.getImplementation() != null && mockedClassDelegatesMapping.containsKey(serviceTask.getImplementation())) {
       
      return new ClassDelegate(mockedClassDelegatesMapping.get(serviceTask.getImplementation()),
          createFieldDeclarations(serviceTask.getFieldExtensions()));
     
    }
   
    return wrappedActivityBehaviorFactory.createClassDelegateServiceTask(serviceTask);
View Full Code Here

  private ClassDelegate createNoOpServiceTask(ServiceTask serviceTask) {
    List<FieldDeclaration> fieldDeclarations = new ArrayList<FieldDeclaration>();
    fieldDeclarations.add(new FieldDeclaration("name",
        Expression.class.getName(), new FixedValue(serviceTask.getImplementation())));
    return new ClassDelegate(NoOpServiceTask.class, fieldDeclarations);
  }
View Full Code Here

    } else if (className != null && className.trim().length() > 0) {
      if (resultVariableName != null) {
        addError("'resultVariableName' not supported for service tasks using 'class'", serviceTaskElement);
      }
      activity.setActivityBehavior(new ClassDelegate(className, parseFieldDeclarations(serviceTaskElement)));

    } else if (delegateExpression != null) {
      if (resultVariableName != null) {
        addError("'resultVariableName' not supported for service tasks using 'delegateExpression'", serviceTaskElement);
      }
View Full Code Here

    String className = taskListenerElement.attribute("class");
    String expression = taskListenerElement.attribute("expression");
    String delegateExpression = taskListenerElement.attribute("delegateExpression");

    if (className != null) {
      taskListener = new ClassDelegate(className, parseFieldDeclarations(taskListenerElement));
    } else if (expression != null) {
      taskListener = new ExpressionTaskListener(expressionManager.createExpression(expression));
    } else if (delegateExpression != null) {
      taskListener = new DelegateExpressionTaskListener(expressionManager.createExpression(delegateExpression), parseFieldDeclarations(taskListenerElement));
    } else {
View Full Code Here

    String className = executionListenerElement.attribute("class");
    String expression = executionListenerElement.attribute("expression");
    String delegateExpression = executionListenerElement.attribute("delegateExpression");

    if (className != null) {
      executionListener = new ClassDelegate(className, parseFieldDeclarations(executionListenerElement));
    } else if (expression != null) {
      executionListener = new ExpressionExecutionListener(expressionManager.createExpression(expression));
    } else if (delegateExpression != null) {
      executionListener = new DelegateExpressionExecutionListener(expressionManager.createExpression(delegateExpression), parseFieldDeclarations(executionListenerElement));
    } else {
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.bpmn.helper.ClassDelegate

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.