标签: Activiti

Activiti 数据分页查询

随着系统的运行,数据量会一直增长,避免不了要实现分页功能,Activiti默认支持分页,下面用几个示例来演示一下。分页功能套路都差不多,查询总记录数;限制查询数量和指定起始位置;总记录数:@RunWith(SpringRunner.class)@SpringBootTest(classes = { ServiceWF2Application.class })public class IdentityTest extends AbstractJUnit4SpringContextTests { @Autowired private IdentityService identityService; @Test public void test1() { long count = identityService.createGroupQuery().count(); System.out.println(count); }}

Activiti 5.22.0 数据库的每个表作用

最新版请到:https://www.devdoc.cn/activiti-table-summary.htmlThe database names of Activiti all start with ACT_. The second part is a two-character identification of the use case of the table. This use case will also roughly match the service API.ACT_RE_*: RE stands for repository. Tables with this prefix contain static information such as process definitions and process resources (images, rules, etc.).ACT_RU_*: RU stands for runtime. These are the runtime tables that contain the runtime data of process instances, user tasks, variables, jobs, etc. Activiti only stores the runtime data during process instance execution, and removes the records when a process instance ends. This keeps the runtime tables small and fast.ACT_ID_*: ID stands for identity. These tables contain identity information, such as users, groups, etc.ACT_HI_*: HI stands for history. These are the tables that contain historic data, such as past process instances, variables, tasks, etc.ACT_GE_*: general data, which is used in various use cases.以上来自官网,下面自己整理一些。ACT_RE_*:RE表示Repository资源库,保存流程定义,模型等设计阶段的数据。ACT_RU_*:RU表示Runtime运行时,保存流程实例,任务,变量等运行阶段的数据。ACT_HI_*:HI表示History历史,保存历史实例,历史任务等流程历史数据。ACT_ID_*:ID表示Identity身份,保存用户,群组,关系等组织机构相关数据。(Activiti中的组织机构过于简单,仅用于演示。)ACT_GE_*:GE表示General通用,属于一些通用配置。其他:ACT_EVT_LOG和ACT_PROCDEF_INFO没有按照规则来,两者分别属于HI和RE。