Package org.camunda.bpm.engine.test.incident

Source Code of org.camunda.bpm.engine.test.incident.FailingDelegateWithFailParameter

package org.camunda.bpm.engine.test.incident;

import org.camunda.bpm.engine.ProcessEngineException;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;

public class FailingDelegateWithFailParameter implements JavaDelegate {

  @Override
  public void execute(DelegateExecution execution) throws Exception {
   
    Boolean fail = (Boolean) execution.getVariable("fail");
   
    if (fail != null && fail) {
      throw new ProcessEngineException("Exception expected.");
    }
  }

}
TOP

Related Classes of org.camunda.bpm.engine.test.incident.FailingDelegateWithFailParameter

TOP
Copyright © 2018 www.massapi.com. 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.