-
Notifications
You must be signed in to change notification settings - Fork 64
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
$TaskID - remove deprecated code #388
Comments
When processing a workitem the $taskId does not get updated at the moment. And would it be possible to log the following log at the fine level when using the simulation service? Thank you! |
Of course, the $taskID as well as the $processID should be written back in parallel with the current version. Otherwise this would be a bug. I have to check this..... |
This is how the 'setTaskID()' method is implemented at the moment in ItemCollection:
Do you set "$processid" or "$taskID" by your self? The only place where this ID is changed should be the WorkflowKernel method 'process'. |
Here only the $processID will be set but not the $taskID I think? imixs-workflow/imixs-workflow-core/src/main/java/org/imixs/workflow/WorkflowKernel.java Line 468 in a8fe8c2
|
yes ! this is a bug |
But you where not in the master branch: imixs-workflow/imixs-workflow-core/src/main/java/org/imixs/workflow/WorkflowKernel.java Line 468 in 7189bd1
|
Hm I downloaded imixs-workflow-core in version 4.3.2 over maven and there only the $processID is set in the WorkflowKernel :-( |
Yes this is right. You are working on the edge to the next version ;-) |
But the process method only updates the $processID at the moment and already switched to the $taskID in the application. So I can't process any workitems at the moment :-/ Which version should I use now?
…________________________________
Von: Ralph Soika <[email protected]>
Gesendet: Montag, 11. Juni 2018 22:58:11
An: imixs/imixs-workflow
Cc: chrisw14; Comment
Betreff: Re: [imixs/imixs-workflow] $TaskID - remove deprecated code (#388)
Yes this is right. You are working on the edge to the next version ;-)
This version is only available in the Master branch. But you don't need to use the latest version with the new methods. Just go ahead with your existing code with version 4.3.2. It is still working. Methods will be marked as deprecated in the future. But there is no pressure.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#388 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AcHeibzUL0iKCCdCBKHOqRcIFX14ud-Zks5t7tnigaJpZM4Ue2dF>.
|
ok - I am not sure where you see the problem. Both fields ($processid and $taskid) will be supported in the future. In you code you can use the new fluent interface to init a new workitem:
You should not change the taskid/processid in you code after a new process instance was processed. Do you have a code example what is going wrong in you code? Why do you think that the process method did not handle both fields? |
Ok now I understand you. This means: with version 4.3.2 we first introduced the new item $eventid and we also provide the new getter/setter methods (get/setEventID and get/setTaskID). Some parts of the code have been deprecated. This version is full backward compatible and shows only some warnings if $activityID is still used. This was necessary to prepare the code of the engine itself for the new concept. But applications usually interact with the WorkflowService and will not see much of this change. As a result of this version the engine is still not setting the new $taskid in most of the cases - as you have recognized. With version 4.3.3 we started some more refactoring for the support the "$taskid" and guarantee the this field is set correctly. In this version also the method processEvent was refactored. If you are using this new version you will see the new $taskid in your workitems. Also this version is full backward compatible. But this is still work in progress. In any case you will see the field "$processid" for a long long period of time in your workitems. You can work with this field equally as with the field "$taskid". This is the reason for issue #384 . So don't be confused. If you use the latest version just make sure that you use get/setTaskID and get/setEventID instead of deprecated code dealing with $processid and $activityid. Your application should not be affected. In the worst case you will see some warnings in the server log file. But your code will not break - if so, than please let me know. |
I tried it to switch to the snapshot version but now maven has a problem. Has something changed here?
|
The current version under development is located in the master branch. This is version "4.3.3-SNAPSHOT" and not "4.3.3".
If you build the project not form sources you can only use the latest released version 4.3.2. |
I have deployed the snapshot release
|
remove method calls getProcessID and replace with getTaskID
The text was updated successfully, but these errors were encountered: