Comments (5)
Hi,
Is this something you would like to contribute? Or did you report this issue as an idea to improve performance?
from flowable-engine.
Hi Tij,
This issue is based on the "Flowable roadmap" wiki page.
I would like to contribute, but I would like to get some feedback on the approach before I start implementing.
from flowable-engine.
Cool, sub tasks should be handled by the TaskEntityManager I think, because sub tasks are attached to a parent task, not to an execution. The implementation points look good to me.
from flowable-engine.
Implementation completed. Added unit tests. Updated affected unit tests.
Main changes:
ProcessEngine - updated version, added task relationship count
ProcessEngineConfigurationImpl - added flag enableTaskRelationshipCounts
AddIdentityLinkCmd, DeleteIdentityLinkCmd, RemoveTaskVariablesCmd - call task.forceUpdate() in order to update the identityLinkCount
GetIdentityLinksForTaskCmd - minor change
ValidateTaskRelatedEntityCountCfgCmd, CountingTaskEntity - initial commit
AbstractEntityManager - added logic for task reltionship counting flag state (enabled/disabled
IdentityLinkEntityManagerImpl, VariableInstanceEntityManagerImpl - increase/decrease IdentityLinkCount on instert/delete
TaskEntityImpl - implements CountingTaskEntity
TaskEntityManagerImpl - check identityLinkCount and variableCount before delete
TaskDataManager, MybatisTaskDataManager - added updateAllTaskRelatedEntityCountFlags() method
ProfilingDbSqlSession - call super.flushUpdates() after collecting data
TaskServiceTest, VerifyDatabaseOperationsTest, ChangeTaskCountConfigAndRebootEngineTest - added unit tests identityLinkCount and variableCount
DatabaseTablePrefixTest, DatabaseTablePrefixTest - updated unit test after the new flag was added
Updated SQL Scripts
Implementation Comments
-
Sub-task Count flag not added (yet) for the following reasons:
- in order to update the flag a new
update
must be made on the parent task for thesubTaskCount
flag - we would add two
update
statements (on sub-task create and delete) in order to remove oneselect
statement (select all sub-tasks when the parent task is completed) - not sure of the possible concurrency side effects if the (parent) TaskEntity is being updated and at the same time a sub-task is being completed (this trying to update the count on the parent).
- in order to update the flag a new
-
Some Commands now have a
task.forceUpdate()
in order to update thevariableCount
andindentityLinkCount
:AddIdentityLinkCmd, DeleteIdentityLinkCmd, RemoveTaskVariablesCmd
from flowable-engine.
Merged the PR, thanks!
from flowable-engine.
Related Issues (20)
- Flowable-rest module add/delete multiple instances execution API does not exist
- Flowable-rest docker 7.0.0 cannot perform HTTP Tasks HOT 2
- about startProceessInstanceAsync API HOT 1
- realease6.8.1 has a bug ,because The rollback Cannot roll back correctly in the case of multiple instances,please fix soon HOT 1
- flowable-ui的版本和flowable-engine的版本不太一致
- Delay in seconds before script condition executed HOT 6
- task complete before report NoSuchMethodError: org.flowable.bpmn.model.UserTask.getTaskCompleterVariableName() , flowable version: 7.0.1 HOT 2
- Flowable 7.0.1 not getting installed in ecliupse HOT 1
- Conditions should support more than JUEL expressions
- suspendProcessInstanceById question
- BpmnXMLUtil.parseExtensionElement setElementText has bug of Line wrap cover HOT 1
- Process migration cannot migrate processes HOT 1
- Process definition id of an async external worker service task job is not updated after direct migration
- 是否有审批人驳回到上级,上级修改后在发起继续审批流程 HOT 1
- Invalid SQL upgrade scripts for HSQL database (7.0.0 -> 7.0.1)
- The DefaultIdentityLinkIterceptor.java creates duplicate identityLinks on ProcessInstance
- AsyncTaskInvokerTaskExecutor supplied by Spring Boot autoconfiguration is not started
- Not possible to exclude the `flowable-event-registry` JAR even if EventRegistry disabled
- startProcessInstanceByKey does not always trigger the process HOT 3
- Liquibase first up does not work with JtaProcessEngineConfiguration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowable-engine.