Package org.camunda.bpm.engine.impl.persistence.deploy

Examples of org.camunda.bpm.engine.impl.persistence.deploy.DeleteDeploymentFailListener


    commandContext
      .getDeploymentManager()
      .deleteDeployment(deploymentId, cascade, skipCustomListeners);

    DeleteDeploymentFailListener listener = new DeleteDeploymentFailListener(deploymentId);

    try {
      new UnregisterDeploymentCmd(Collections.singleton(deploymentId)).execute(commandContext);
    } finally {
      try {
        commandContext.getTransactionContext().addTransactionListener(TransactionState.ROLLED_BACK, listener);
      } catch (Exception e) {
        log.log(Level.FINE, "Could not register transaction synchronization. Probably the TX has already been rolled back by application code.", e);
        listener.execute(commandContext);
      }
    }


    return null;
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.persistence.deploy.DeleteDeploymentFailListener

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.