学习 activiti_Service(五)ManagementService

本文主要介绍了Activiti的ManagementService,这是一个用于流程引擎管理和维护的操作服务。内容包括服务功能、实例解析和API介绍,其中ManagementService的某些操作适用于操作控制台而非常规工作流应用。
摘要由CSDN通过智能技术生成

activiti 版本号 7.0.0.SR1

一、功能

API解释

  • Service for admin and maintenance operations on the process engine.
  • These operations will typically not be used in a workflow driven application, but are used in for example the operational console.

翻译

  • 提供 对 流程引擎 的 管理和维护操作。
  • 这些操作通常不会在工作流驱动的应用程序中使用,而是在操作控制台中使用。
     /**
     * 操作
     *   1. executeJob(String jobId);
     *   2. moveTimerToExecutableJob(String jobId);
     *   3. moveJobToDeadLetterJob(String jobId);
     *   4. moveDeadLetterJobToExecutableJob(String jobId, int retries);
     *   5. databaseSchemaUpgrade(Connection connection, String catalog, String schema);
     *   6. executeCommand(Command<T> command);
     *      executeCommand(CommandConfig config, Command<T> command);
     *   7. executeCustomSql(CustomSqlExecution<MapperType, ResultType> customSqlExecution);
     * 增
     *   1. getTableCount();
     *   2. getTableName(Class<?> activitiEntityClass);
     *   3. getTableMetaData(String tableName);
     * 删
     *   1. deleteJob(String jobId);
     *   2. deleteTimerJob(String jobId);
     *   3. deleteDeadLetterJob(String jobId);
     *   4. deleteEventLogEntry(long logNr);
     * 查
     *   1. Query
     *     1. createTablePageQuery();
     *     2. createJobQuery();
     *     3. createTimerJobQuery();
     *     4. createSuspendedJobQuery();
     *     5. createDeadLetterJobQuery();
     *   2. 其他
     *     1. getJobExceptionStacktrace(String jobId);
     *     2. getTimerJobExceptionStacktrace(String jobId);
     *     3. getSuspendedJobExceptionStacktrace(String jobId);
     *     4. getDeadLetterJobExceptionStacktrace(String jobId);
     *     5. getProperties();
     *     6. getEventLogEntries(Long startLogNr, Long pageSize);
     *     7. getEventLogEntriesByProcessInstanceId(String processInstanceId);
     * 改
     *   1. setJobRetries(String jobId, int retries);
     *   2. setTimerJobRetries(String jobId, int retries);
     */

二、个例

1. String databaseSchemaUpgrade(Connection connection, String catalog, String schema);

描述:programmatic schema update on a given connection returning feedback about what happened

  1. connection:可以通过 dataSource.getConnection() 获取。
  2. catalog, schema
  • 从实现的角度来看,各种数据库系统对Catalog和Schema的支持和实现方式千差万别,针对具体问题需要参考具体的产品说明书,比较简单而常用的实现方式是使用数据库名作为Catalog名,使用用户名作为Schema名,具体可参见下表:
    在这里插入图片描述

三、API

英文版点这里

  /**
   * 获取包含Activiti数据库架构
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值