Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intermediateCatchEvent in 7.x is problem or any other configuration #3992

Open
liuxiaobo129 opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@liuxiaobo129
Copy link

Describe the bug
The time of intermediateCatchEvent is the start time. As a result, the periodic run cannot obtain data in the table

Expected behavior

<intermediateCatchEvent id="waitTimer" name="Wait for Timer">
        <timerEventDefinition>
            <timeDuration>PT30S</timeDuration>
        </timerEventDefinition>
    </intermediateCatchEvent>

The operation fails after 30 seconds
Code
1、
SELECT RES.* from ACT_RU_TIMER_JOB RES
where
SCOPE_TYPE_ is null and DUEDATE_ <= '2024-12-02 18:02:35.397' and LOCK_OWNER_ is null order by RES.ID_ asc LIMIT 512 OFFSET 0;

2、
@bean
public SpringProcessEngineConfiguration springProcessEngineConfiguration() {
SpringProcessEngineConfiguration configuration = new SpringProcessEngineConfiguration();
configuration.setDataSource(dataSource()); // 设置数据源
configuration.setTransactionManager(transactionManager()); // 设置事务管理器
configuration.setDatabaseSchemaUpdate("true"); // 自动更新数据库表结构
configuration.setAsyncExecutorActivate(true); // 激活异步执行器
configuration.setAsyncExecutorCorePoolSize(10);
configuration.setAsyncExecutorMaxPoolSize(20);
// 对定时任务有影响
// configuration.setClock(new Clock() {})
return configuration;

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant