Activiti 工作流 流程定义的删除 04

流程定义设计到的表

 select * from act_re_procdef

Activiti 工作流 流程定义的删除 04_第1张图片


 /**
     * 删除流程定义
     */
    @Test
    public void delete(){
        processEngine.getRepositoryService()
                /**
                 * 流程部署ID
                 */
                .deleteDeployment("12501");  
        System.out.println("delete OK!");
    }
D:\download\tool\jdk\install\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59272,suspend=y,server=n -ea -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.1\plugins\testng\lib\testng-plugin.jar;D:\download\tool\jdk\install\jre\lib\charsets.jar;D:\download\tool\jdk\install\jre\lib\deploy.jar;D:\download\tool\jdk\install\jre\lib\ext\access-bridge-64.jar;D:\download\tool\jdk\install\jre\lib\ext\cldrdata.jar;D:\download\tool\jdk\install\jre\lib\ext\dnsns.jar;D:\download\tool\jdk\install\jre\lib\ext\jaccess.jar;D:\download\tool\jdk\install\jre\lib\ext\jfxrt.jar;D:\download\tool\jdk\install\jre\lib\ext\localedata.jar;D:\download\tool\jdk\install\jre\lib\ext\nashorn.jar;D:\download\tool\jdk\install\jre\lib\ext\sunec.jar;D:\download\tool\jdk\install\jre\lib\ext\sunjce_provider.jar;D:\download\tool\jdk\install\jre\lib\ext\sunmscapi.jar;D:\download\tool\jdk\install\jre\lib\ext\sunpkcs11.jar;D:\download\tool\jdk\install\jre\lib\ext\zipfs.jar;D:\download\tool\jdk\install\jre\lib\javaws.jar;D:\download\tool\jdk\install\jre\lib\jce.jar;D:\download\tool\jdk\install\jre\lib\jfr.jar;D:\download\tool\jdk\install\jre\lib\jfxswt.jar;D:\download\tool\jdk\install\jre\lib\jsse.jar;D:\download\tool\jdk\install\jre\lib\management-agent.jar;D:\download\tool\jdk\install\jre\lib\plugin.jar;D:\download\tool\jdk\install\jre\lib\resources.jar;D:\download\tool\jdk\install\jre\lib\rt.jar;D:\pro_idea\disport\disport\target\test-classes;D:\pro_idea\disport\disport\target\classes;D:\download\tool\maven\repository\junit\junit\4.12\junit-4.12.jar;D:\download\tool\maven\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\download\tool\maven\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\download\tool\maven\repository\org\mybatis\mybatis\3.4.1\mybatis-3.4.1.jar;D:\download\tool\maven\repository\org\mybatis\mybatis-spring\1.3.0\mybatis-spring-1.3.0.jar;D:\download\tool\maven\repository\org\hibernate\hibernate-validator\5.4.1.Final\hibernate-validator-5.4.1.Final.jar;D:\download\tool\maven\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\download\tool\maven\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;D:\download\tool\maven\repository\com\fasterxml\classmate\1.3.1\classmate-1.3.1.jar;D:\download\tool\maven\repository\org\springframework\spring-webmvc\4.3.12.RELEASE\spring-webmvc-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-beans\4.3.12.RELEASE\spring-beans-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-context\4.3.12.RELEASE\spring-context-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-core\4.3.12.RELEASE\spring-core-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-expression\4.3.12.RELEASE\spring-expression-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-web\4.3.12.RELEASE\spring-web-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-jdbc\4.3.12.RELEASE\spring-jdbc-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-tx\4.3.12.RELEASE\spring-tx-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-context-support\4.3.12.RELEASE\spring-context-support-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-aop\4.3.12.RELEASE\spring-aop-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-aspects\4.3.12.RELEASE\spring-aspects-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\aspectj\aspectjweaver\1.8.9\aspectjweaver-1.8.9.jar;D:\download\tool\maven\repository\org\springframework\spring-test\4.3.12.RELEASE\spring-test-4.3.12.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\data\spring-data-redis\1.8.7.RELEASE\spring-data-redis-1.8.7.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\data\spring-data-keyvalue\1.2.7.RELEASE\spring-data-keyvalue-1.2.7.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\data\spring-data-commons\1.13.7.RELEASE\spring-data-commons-1.13.7.RELEASE.jar;D:\download\tool\maven\repository\org\springframework\spring-oxm\4.3.11.RELEASE\spring-oxm-4.3.11.RELEASE.jar;D:\download\tool\maven\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;D:\download\tool\maven\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\download\tool\maven\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\download\tool\maven\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\download\tool\maven\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\download\tool\maven\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\download\tool\maven\repository\mysql\mysql-connector-java\5.1.38\mysql-connector-java-5.1.38.jar;D:\download\tool\maven\repository\com\alibaba\druid\1.0.28\druid-1.0.28.jar;D:\download\tool\jdk\install\lib\jconsole.jar;D:\download\tool\jdk\install\lib\tools.jar;D:\download\tool\maven\repository\org\quartz-scheduler\quartz\2.3.0\quartz-2.3.0.jar;D:\download\tool\maven\repository\com\mchange\c3p0\0.9.5.2\c3p0-0.9.5.2.jar;D:\download\tool\maven\repository\com\mchange\mchange-commons-java\0.2.11\mchange-commons-java-0.2.11.jar;D:\download\tool\maven\repository\com\zaxxer\HikariCP-java6\2.3.13\HikariCP-java6-2.3.13.jar;D:\download\tool\maven\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\download\tool\maven\repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;D:\download\tool\maven\repository\commons-io\commons-io\2.5\commons-io-2.5.jar;D:\download\tool\maven\repository\com\alibaba\fastjson\1.2.32\fastjson-1.2.32.jar;D:\download\tool\maven\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;D:\download\tool\maven\repository\commons-configuration\commons-configuration\1.10\commons-configuration-1.10.jar;D:\download\tool\maven\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\download\tool\maven\repository\org\apache\shiro\shiro-core\1.3.2\shiro-core-1.3.2.jar;D:\download\tool\maven\repository\commons-beanutils\commons-beanutils\1.8.3\commons-beanutils-1.8.3.jar;D:\download\tool\maven\repository\org\apache\shiro\shiro-spring\1.3.2\shiro-spring-1.3.2.jar;D:\download\tool\maven\repository\org\apache\shiro\shiro-web\1.3.2\shiro-web-1.3.2.jar;D:\download\tool\maven\repository\com\github\axet\kaptcha\0.0.9\kaptcha-0.0.9.jar;D:\download\tool\maven\repository\com\jhlabs\filters\2.0.235\filters-2.0.235.jar;D:\download\tool\maven\repository\com\qiniu\qiniu-java-sdk\7.2.8\qiniu-java-sdk-7.2.8.jar;D:\download\tool\maven\repository\com\squareup\okhttp3\okhttp\3.3.1\okhttp-3.3.1.jar;D:\download\tool\maven\repository\com\squareup\okio\okio\1.8.0\okio-1.8.0.jar;D:\download\tool\maven\repository\com\google\code\gson\gson\2.6.2\gson-2.6.2.jar;D:\download\tool\maven\repository\com\qiniu\happy-dns-java\0.1.6\happy-dns-java-0.1.6.jar;D:\download\tool\maven\repository\com\aliyun\oss\aliyun-sdk-oss\2.5.0\aliyun-sdk-oss-2.5.0.jar;D:\download\tool\maven\repository\org\apache\httpcomponents\httpclient\4.4.1\httpclient-4.4.1.jar;D:\download\tool\maven\repository\org\jdom\jdom\1.1\jdom-1.1.jar;D:\download\tool\maven\repository\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar;D:\download\tool\maven\repository\net\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar;D:\download\tool\maven\repository\com\qcloud\cos_api\4.4\cos_api-4.4.jar;D:\download\tool\maven\repository\org\apache\httpcomponents\httpcore\4.4.3\httpcore-4.4.3.jar;D:\download\tool\maven\repository\org\apache\httpcomponents\httpmime\4.5.1\httpmime-4.5.1.jar;D:\download\tool\maven\repository\org\json\json\20140107\json-20140107.jar;D:\download\tool\maven\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;D:\download\tool\maven\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;D:\download\tool\maven\repository\jstl\jstl\1.2\jstl-1.2.jar;D:\download\tool\maven\repository\taglibs\standard\1.1.2\standard-1.1.2.jar;D:\download\tool\maven\repository\org\freemarker\freemarker\2.3.23\freemarker-2.3.23.jar;D:\download\tool\maven\repository\org\apache\poi\poi\3.16\poi-3.16.jar;D:\download\tool\maven\repository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;D:\download\tool\maven\repository\org\activiti\activiti-engine\6.0.0\activiti-engine-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-bpmn-converter\6.0.0\activiti-bpmn-converter-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-process-validation\6.0.0\activiti-process-validation-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-image-generator\6.0.0\activiti-image-generator-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-dmn-api\6.0.0\activiti-dmn-api-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-dmn-model\6.0.0\activiti-dmn-model-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-form-model\6.0.0\activiti-form-model-6.0.0.jar;D:\download\tool\maven\repository\org\activiti\activiti-form-api\6.0.0\activiti-form-api-6.0.0.jar;D:\download\tool\maven\repository\org\apache\commons\commons-email\1.4\commons-email-1.4.jar;D:\download\tool\maven\repository\com\sun\mail\javax.mail\1.5.2\javax.mail-1.5.2.jar;D:\download\tool\maven\repository\javax\activation\activation\1.1.1\activation-1.1.1.jar;D:\download\tool\maven\repository\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;D:\download\tool\maven\repository\de\odysseus\juel\juel-api\2.2.7\juel-api-2.2.7.jar;D:\download\tool\maven\repository\de\odysseus\juel\juel-impl\2.2.7\juel-impl-2.2.7.jar;D:\download\tool\maven\repository\de\odysseus\juel\juel-spi\2.2.7\juel-spi-2.2.7.jar;D:\download\tool\maven\repository\joda-time\joda-time\2.6\joda-time-2.6.jar;D:\download\tool\maven\repository\org\activiti\activiti-spring\6.0.0\activiti-spring-6.0.0.jar;D:\download\tool\maven\repository\org\springframework\spring-orm\4.2.5.RELEASE\spring-orm-4.2.5.RELEASE.jar;D:\download\tool\maven\repository\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;D:\download\tool\maven\repository\commons-pool\commons-pool\1.5.4\commons-pool-1.5.4.jar;D:\download\tool\maven\repository\org\activiti\activiti-bpmn-model\6.0.0\activiti-bpmn-model-6.0.0.jar;D:\download\tool\maven\repository\com\fasterxml\jackson\core\jackson-core\2.7.5\jackson-core-2.7.5.jar;D:\download\tool\maven\repository\com\fasterxml\jackson\core\jackson-databind\2.7.5\jackson-databind-2.7.5.jar;D:\download\tool\maven\repository\com\fasterxml\jackson\core\jackson-annotations\2.7.0\jackson-annotations-2.7.0.jar;D:\download\tool\maven\repository\org\webjars\bower\ueditor-bower\1.4.3\ueditor-bower-1.4.3.jar;D:\download\tool\maven\repository\org\junit\jupiter\junit-jupiter-api\5.1.0-M1\junit-jupiter-api-5.1.0-M1.jar;D:\download\tool\maven\repository\org\opentest4j\opentest4j\1.0.0\opentest4j-1.0.0.jar;D:\download\tool\maven\repository\org\junit\platform\junit-platform-commons\1.1.0-M1\junit-platform-commons-1.1.0-M1.jar;D:\download\tool\maven\repository\org\testng\testng\6.13.1\testng-6.13.1.jar;D:\download\tool\maven\repository\com\beust\jcommander\1.72\jcommander-1.72.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.1\plugins\testng\lib\jcommander.jar" org.testng.RemoteTestNGStarter -usedefaultlisteners false -socket59271 @w@C:\Users\Administrator\AppData\Local\Temp\idea_working_dirs_testng.tmp -temp C:\Users\Administrator\AppData\Local\Temp\idea_testng.tmp
Connected to the target VM, address: '127.0.0.1:59272', transport: 'socket'
[INFO][2017-12-08 11:11:23] org.activiti.engine.ProcessEngines.init(ProcessEngines.java:93) Initializing process engine using configuration 'file:/D:/pro_idea/disport/disport/target/classes/activiti.cfg.xml' 
[INFO][2017-12-08 11:11:23] org.activiti.engine.ProcessEngines.initProcessEngineFromResource(ProcessEngines.java:161) initializing process engine for resource file:/D:/pro_idea/disport/disport/target/classes/activiti.cfg.xml 
[INFO][2017-12-08 11:11:23] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317) Loading XML bean definitions from InputStream resource [resource loaded through InputStream] 
Fri Dec 08 11:11:24 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
[INFO][2017-12-08 11:11:25] org.activiti.engine.compatibility.DefaultActiviti5CompatibilityHandlerFactory.createActiviti5CompatibilityHandler(DefaultActiviti5CompatibilityHandlerFactory.java:38) Activiti 5 compatibility handler implementation not found or error during instantiation : org.activiti.compatibility.DefaultActiviti5CompatibilityHandler. Activiti 5 backwards compatibility disabled. 
[INFO][2017-12-08 11:11:26] org.activiti.engine.impl.ProcessEngineImpl.(ProcessEngineImpl.java:87) ProcessEngine default created 
[INFO][2017-12-08 11:11:26] org.activiti.engine.ProcessEngines.initProcessEngineFromResource(ProcessEngines.java:164) initialised process engine default delete OK!
Disconnected from the target VM, address: '127.0.0.1:59272', transport: 'socket'

===============================================
Default Suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================


Process finished with exit code 0

如果不习惯activiti提供的方法也可以直接使用sql语句执行   

你可能感兴趣的:(activiti工作流)