Comments (5)
Which Activiti version are you using? If pre 7.x then those versions are no longer maintained.
from activiti.
Hi sorry, we are using version 7.1.0.M3.1, I have updated my original question.
from activiti.
Thanks for adding the version info.
The save history endpoint is void rather than returning the newly added HistoricDetail entity.
Which endpoint? Can you point to that endpoint in the code?
from activiti.
Endpoint may have been a little misleading, allow me to try to clarify...
We are calling the updateTask
endpoint from our application. And since we have history level set to FULL, the following method gets executed which inserts our variables into the activiti history detail table.
This is working as we expect, however this method has void return type, when we are actually interested in the ID that gets returned after line 650. For example, you can see the ID we are interested in being returned with the HistoricDetailVariableInstanceUpdateEntity
here:
but just not with the method and therefore not to our application. I understand making this method no longer return void looks like it would have tons of consequences so that seems unlikely and probably unnecessary.
Right now we are experimenting with making a query to the history detail table after our record gets inserted, and grabbing the latest ID for the variable we are interested in. We are concerned this won't work as we test our more complicated workflows with more tasks/subtasks, and ideally we would like to grab the ID right after DB insertion.
We discussed potentially writing our own HistoryManager
Implementation that would override this method and write the ID to ThreadLocal
so we could access it from our application. This was our best idea at the moment.
Would love to hear if you think we are on the right track, or any other ideas you may have. Thanks!
from activiti.
Have you tried using HistoricVariableInstanceQuery?
You can use it to get the latest variable update filtering by taskId, variableName, etc!
from activiti.
Related Issues (20)
- Migrating to Activiti 8
- activiti-explorer:5.22.0 TypeError: Cannot read properties of undefined (reading 'namespace')
- visit {{gateway}}/modeling/v1/models 404, but other api is ok
- 'org.activiti.engine.task.Comment' interface is outdated, so what is the alternative interface
- Encountering "Transaction synchronization is not active" error when a timer job is executed
- Cannot access public URLs using POST method HOT 1
- Activiti Explorer Suddenly Stopped Working HOT 1
- There are multiple non-interrupt timers in my process definition. They will be executed at the specified time of the set process. For example, set 6 timers and execute them after 10 minutes. However, errors will occur during the execution process. Please help me take a look.
- Adding execution listener before IntermediateCatchEvent results in IntermediateCatchEvent waiting to be ingored - process continue execution
- There are multiple non-interrupt scheduled task boundary events on the user task that are executed concurrently and an error occurs. How should I solve this problem?
- There are other method to get BpmnModel?
- Tasks::checkTaskVariablesAreTheSameInRBAndQuery in activiti-cloud fails intermittently for missing await
- Upgrade script for mssql 8.0.0 to 8.1.0 has syntax error HOT 3
- Is Java21 required for version 8.2? HOT 3
- JSON licenses - could this be removed now?
- Adding null guards against command contexts?
- When will receive task be supported in modeling application ?
- Column length issue ACT_GE_BYTEARRAY (Name_ column) HOT 2
- Review the OpenAPI doc for process-instance API
- ProcessInstanceHelper starts always the first found start event message
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 activiti.