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
- connection:可以通过 dataSource.getConnection() 获取。
- catalog, schema
- 从实现的角度来看,各种数据库系统对Catalog和Schema的支持和实现方式千差万别,针对具体问题需要参考具体的产品说明书,比较简单而常用的实现方式是使用数据库名作为Catalog名,使用用户名作为Schema名,具体可参见下表:
三、API
/**
* 获取包含Activiti数据库架构