排他网关-部署流程定义

类:com.roy.ActivitiGatewayExclusive
/**
     * 部署流程定义
     */
    @Test
    public void testDeployment(){
//        1、创建ProcessEngine
        ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
//        2、得到RepositoryService实例
        RepositoryService repositoryService = processEngine.getRepositoryService();
//        3、使用RepositoryService进行部署
        Deployment deployment = repositoryService.createDeployment()
                .addClasspathResource("bpmn/evection-exclusive.bpmn") // 添加bpmn资源
//                .addClasspathResource("bpmn/evection.png")  // 添加png资源
                .name("出差申请流程-排他网关")
                .deploy();
//        4、输出部署信息
        System.out.println("流程部署id:" + deployment.getId());
        System.out.println("流程部署名称:" + deployment.getName());
    }

2023-06-05 22:53:49,320 0     [           main] INFO  activiti.engine.ProcessEngines  - Initializing process engine using configuration 'file:/D:/workspace/20210614/ActivitiDemo/BasicDemo/target/classes/activiti.cfg.xml'

2023-06-05 22:53:49,322 2     [           main] INFO  activiti.engine.ProcessEngines  - initializing process engine for resource file:/D:/workspace/20210614/ActivitiDemo/BasicDemo/target/classes/activiti.cfg.xml

2023-06-05 22:53:49,901 581   [           main] DEBUG ry.xml.XmlBeanDefinitionReader  - Loaded 2 bean definitions from InputStream resource [resource loaded through InputStream]

2023-06-05 22:53:49,903 583   [           main] DEBUG ort.DefaultListableBeanFactory  - Creating shared instance of singleton bean 'processEngineConfiguration'

2023-06-05 22:53:50,327 1007  [           main] DEBUG ort.DefaultListableBeanFactory  - Creating shared instance of singleton bean 'dataSource'

2023-06-05 22:53:53,683 4363  [           main] DEBUG ProcessEngineConfigurationImpl  - database product name: 'MySQL'

2023-06-05 22:53:53,684 4364  [           main] DEBUG ProcessEngineConfigurationImpl  - using database type: mysql

2023-06-05 22:53:53,884 4564  [           main] DEBUG ache.ibatis.logging.LogFactory  - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/D:/studysoftware/mavenRepository-gpidea/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.jar) to method java.lang.Object.finalize()

WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

2023-06-05 22:53:55,350 6030  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,350 6030  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting SchemaOperationsProcessEngineBuild --------------------------------------------------------

2023-06-05 22:53:55,357 6037  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:53:55,373 6053  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Executing performSchemaOperationsProcessEngineBuild with setting true

2023-06-05 22:53:55,373 6053  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:53:55,394 6074  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,457 6137  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-05 22:53:55,500 6180  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: schema.version(String)

2023-06-05 22:53:55,538 6218  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-05 22:53:55,576 6256  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:53:55,576 6256  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-05 22:53:55,576 6256  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:53:55,576 6256  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:53:55,579 6259  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:53:55,580 6260  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:53:55,581 6261  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,583 6263  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,584 6264  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- SchemaOperationsProcessEngineBuild finished --------------------------------------------------------

2023-06-05 22:53:55,584 6264  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,584 6264  [           main] INFO  .engine.impl.ProcessEngineImpl  - ProcessEngine default created

2023-06-05 22:53:55,597 6277  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,597 6277  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting ValidateExecutionRelatedEntityCountCfgCmd --------------------------------------------------------

2023-06-05 22:53:55,597 6277  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:53:55,597 6277  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:53:55,598 6278  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,599 6279  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-05 22:53:55,599 6279  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: cfg.execution-related-entities-count(String)

2023-06-05 22:53:55,600 6280  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-05 22:53:55,600 6280  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:53:55,600 6280  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-05 22:53:55,600 6280  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:53:55,600 6280  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:53:55,600 6280  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:53:55,601 6281  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:53:55,601 6281  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,602 6282  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,602 6282  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- ValidateExecutionRelatedEntityCountCfgCmd finished --------------------------------------------------------

2023-06-05 22:53:55,602 6282  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,602 6282  [           main] INFO  activiti.engine.ProcessEngines  - initialised process engine default

2023-06-05 22:53:55,605 6285  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,605 6285  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting  --------------------------------------------------------

2023-06-05 22:53:55,606 6286  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:53:55,617 6297  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:53:55,617 6297  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:53:55,617 6297  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:53:55,617 6297  [           main] DEBUG mpl.interceptor.LogInterceptor  - ---  finished --------------------------------------------------------

2023-06-05 22:53:55,617 6297  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,620 6300  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,620 6300  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting DeployCmd --------------------------------------------------------

2023-06-05 22:53:55,620 6300  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:53:55,622 6302  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,622 6302  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting GetNextIdBlockCmd --------------------------------------------------------

2023-06-05 22:53:55,623 6303  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:53:55,623 6303  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:53:55,626 6306  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,628 6308  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-05 22:53:55,628 6308  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: next.dbid(String)

2023-06-05 22:53:55,629 6309  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-05 22:53:55,630 6310  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:53:55,631 6311  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   update PropertyEntity[name=next.dbid, value=90001]

2023-06-05 22:53:55,631 6311  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 1 update, 0 delete.

2023-06-05 22:53:55,631 6311  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:53:55,631 6311  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - updating: PropertyEntity[name=next.dbid, value=90001]

2023-06-05 22:53:55,631 6311  [           main] DEBUG pertyEntityImpl.updateProperty  - ==>  Preparing: update ACT_GE_PROPERTY SET REV_ = ?, VALUE_ = ? where NAME_ = ? and REV_ = ? 

2023-06-05 22:53:55,632 6312  [           main] DEBUG pertyEntityImpl.updateProperty  - ==> Parameters: 37(Integer), 90001(String), next.dbid(String), 36(Integer)

2023-06-05 22:53:55,633 6313  [           main] DEBUG pertyEntityImpl.updateProperty  - <==    Updates: 1

2023-06-05 22:53:55,633 6313  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:53:55,633 6313  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:53:55,634 6314  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Committing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,771 6451  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:53:55,774 6454  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,777 6457  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:55,777 6457  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- GetNextIdBlockCmd finished --------------------------------------------------------

2023-06-05 22:53:55,777 6457  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:55,778 6458  [           main] DEBUG mpl.bpmn.deployer.BpmnDeployer  - Processing deployment 出差申请流程-排他网关

2023-06-05 22:53:55,783 6463  [           main] DEBUG ployer.ParsedDeploymentBuilder  - Processing BPMN resource bpmn/evection-exclusive.bpmn

2023-06-05 22:53:56,026 6706  [           main] DEBUG er.handler.ProcessParseHandler  - Parsing process exclusive

2023-06-05 22:53:56,049 6729  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:53:56,050 6730  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:56,051 6731  [           main] DEBUG ctLatestProcessDefinitionByKey  - ==>  Preparing: select * from ACT_RE_PROCDEF where KEY_ = ? and (TENANT_ID_ = '' or TENANT_ID_ is null) and VERSION_ = (select max(VERSION_) from ACT_RE_PROCDEF where KEY_ = ? and (TENANT_ID_ = '' or TENANT_ID_ is null)) 

2023-06-05 22:53:56,051 6731  [           main] DEBUG ctLatestProcessDefinitionByKey  - ==> Parameters: exclusive(String), exclusive(String)

2023-06-05 22:53:56,061 6741  [           main] DEBUG ctLatestProcessDefinitionByKey  - <==      Total: 0

2023-06-05 22:53:56,073 6753  [           main] DEBUG ProcessDefinitionKeyNoTenantId  - ==>  Preparing: select J.* from ACT_RU_TIMER_JOB J inner join ACT_RE_PROCDEF P on J.PROC_DEF_ID_ = P.ID_ where J.HANDLER_TYPE_ = ? and P.KEY_ = ? and (P.TENANT_ID_ = '' or P.TENANT_ID_ is null) 

2023-06-05 22:53:56,073 6753  [           main] DEBUG ProcessDefinitionKeyNoTenantId  - ==> Parameters: timer-start-event(String), exclusive(String)

2023-06-05 22:53:56,082 6762  [           main] DEBUG ProcessDefinitionKeyNoTenantId  - <==      Total: 0

2023-06-05 22:53:56,082 6762  [           main] INFO  mpl.bpmn.deployer.BpmnDeployer  - Process deployed: {id: exclusive:1:87503, key: exclusive, name: 出差流程-排他 }

2023-06-05 22:53:56,083 6763  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:56,083 6763  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting GetProcessDefinitionInfoCmd --------------------------------------------------------

2023-06-05 22:53:56,083 6763  [           main] DEBUG ptor.CommandContextInterceptor  - Valid context found. Reusing it for the current command 'org.activiti.engine.impl.cmd.GetProcessDefinitionInfoCmd'

2023-06-05 22:53:56,083 6763  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:53:56,086 6766  [           main] DEBUG itionInfoByProcessDefinitionId  - ==>  Preparing: select * from ACT_PROCDEF_INFO where PROC_DEF_ID_ = ? 

2023-06-05 22:53:56,087 6767  [           main] DEBUG itionInfoByProcessDefinitionId  - ==> Parameters: exclusive:1:87503(String)

2023-06-05 22:53:56,100 6780  [           main] DEBUG itionInfoByProcessDefinitionId  - <==      Total: 0

2023-06-05 22:53:56,102 6782  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- GetProcessDefinitionInfoCmd finished --------------------------------------------------------

2023-06-05 22:53:56,103 6783  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:53:56,104 6784  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:53:56,104 6784  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert DeploymentEntity[id=87501, name=出差申请流程-排他网关]

2023-06-05 22:53:56,104 6784  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert ResourceEntity[id=87502, name=bpmn/evection-exclusive.bpmn]

2023-06-05 22:53:56,104 6784  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert ProcessDefinitionEntity[exclusive:1:87503]

2023-06-05 22:53:56,105 6785  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 3 insert, 0 update, 0 delete.

2023-06-05 22:53:56,105 6785  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:53:56,105 6785  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: ProcessDefinitionEntity[exclusive:1:87503]

2023-06-05 22:53:56,105 6785  [           main] DEBUG tyImpl.insertProcessDefinition  - ==>  Preparing: insert into ACT_RE_PROCDEF(ID_, REV_, CATEGORY_, NAME_, KEY_, VERSION_, DEPLOYMENT_ID_, RESOURCE_NAME_, DGRM_RESOURCE_NAME_, DESCRIPTION_, HAS_START_FORM_KEY_, HAS_GRAPHICAL_NOTATION_ , SUSPENSION_STATE_, TENANT_ID_, ENGINE_VERSION_, APP_VERSION_) values (?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 

2023-06-05 22:53:56,111 6791  [           main] DEBUG tyImpl.insertProcessDefinition  - ==> Parameters: exclusive:1:87503(String), http://www.activiti.org/test(String), 出差流程-排他(String), exclusive(String), 1(Integer), 87501(String), bpmn/evection-exclusive.bpmn(String), null, null, false(Boolean), true(Boolean), 1(Integer), (String), null, null

2023-06-05 22:53:56,126 6806  [           main] DEBUG tyImpl.insertProcessDefinition  - <==    Updates: 1

2023-06-05 22:53:56,126 6806  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: DeploymentEntity[id=87501, name=出差申请流程-排他网关]

2023-06-05 22:53:56,127 6807  [           main] DEBUG entEntityImpl.insertDeployment  - ==>  Preparing: insert into ACT_RE_DEPLOYMENT(ID_, NAME_, CATEGORY_, KEY_, TENANT_ID_, DEPLOY_TIME_, ENGINE_VERSION_, VERSION_, PROJECT_RELEASE_VERSION_) values(?, ?, ?, ?, ?, ?, ?, ?, ?) 

2023-06-05 22:53:56,130 6810  [           main] DEBUG entEntityImpl.insertDeployment  - ==> Parameters: 87501(String), 出差申请流程-排他网关(String), null, null, (String), 2023-06-05 22:53:55.621(Timestamp), null, 1(Integer), null

2023-06-05 22:53:56,136 6816  [           main] DEBUG entEntityImpl.insertDeployment  - <==    Updates: 1

2023-06-05 22:53:56,137 6817  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: ResourceEntity[id=87502, name=bpmn/evection-exclusive.bpmn]

2023-06-05 22:53:56,137 6817  [           main] DEBUG ourceEntityImpl.insertResource  - ==>  Preparing: insert into ACT_GE_BYTEARRAY(ID_, REV_, NAME_, BYTES_, DEPLOYMENT_ID_, GENERATED_) values (?, 1, ?, ?, ?, ?) 

2023-06-05 22:53:56,140 6820  [           main] DEBUG ourceEntityImpl.insertResource  - ==> Parameters: 87502(String), bpmn/evection-exclusive.bpmn(String), java.io.ByteArrayInputStream@1d12e953(ByteArrayInputStream), 87501(String), false(Boolean)

2023-06-05 22:53:56,294 6974  [           main] DEBUG ourceEntityImpl.insertResource  - <==    Updates: 1

2023-06-05 22:53:56,295 6975  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:53:56,295 6975  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:53:56,298 6978  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Committing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:56,325 7005  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:53:56,329 7009  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:56,331 7011  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:53:56,331 7011  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- DeployCmd finished --------------------------------------------------------

2023-06-05 22:53:56,331 7011  [           main] DEBUG mpl.interceptor.LogInterceptor  -

流程部署id:87501

流程部署名称:出差申请流程-排他网关

Disconnected from the target VM, address: '127.0.0.1:64534', transport: 'socket'

Process finished with exit code 0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Activiti 7 是一个开源的工作流引擎,用于管理和执行工作流程。在工作流程中,有时需要根据不同的条件来决定下一步的执行路径,这时可以使用网关网关是 Activiti 7 中的一个重要元素,它用于根据不同条件选择唯一的下一步执行路径。网关可以根据条件的结果将流程分流到不同的分支或任务,并决定哪个分支或任务将被执行。 在 Activiti 7 中使用网关非常简单。首先,在流程定义文件中使用 `<exclusiveGateway>` 元素定义网关。然后,在网关的输出路径上定义条件,并将每个路径连接到相应的任务或分支。 当流程执行到网关时,它会根据每个路径的条件逐一判断,直到找到满足条件的路径。满足条件的路径将被执行,而其他路径将被忽略。如果没有路径满足条件,流程可能会进入等待状态,直到满足条件的路径出现。 使用网关可以在流程中实现条件分支和合并。它能够根据不同的条件,灵活地控制流程的走向。与其他类型的网关相比,网关更加简单直观,适用于大多数条件判断的场景。 总之,Activiti 7 中的网关是一个用于根据不同条件决定流程执行路径的重要元素。通过定义条件并将流程连接到相应的任务或分支,可以实现灵活的条件分支和合并。使用网关可以优化流程控制,提高工作流的效率和可靠性。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值