On 29/05/2018 19:31, Lukas Funk wrote:
Hi guys,
We were using the default (flowable-)workflow in our first setup. Now,
I’d like to update the workflow, so that I can edit suspended users
(which is not possible in the default workflow).
I managed to update the workflow to my needs with the /workflow REST
endpoint and it works fine with newly created users. But the already
existing users still use the previous workflow.
How can I apply the new workflow to all existing users?
Hi Lukas,
first a question: are you using Flowable with Syncope 2.0? That's nice
to hear, as Flowable is not default in 2.0, but became so in 2.1.
Anyway: as you have already found, each user is bound to the workflow
definition available at the time he / she was created.
This is a constraint by Activiti / Flowable, to ensure consistency: what
would happen, for example, if you remove in a subsequent definition the
state in which an user is located?
Hence, the suggestion is simply to delete the users created under the
old definition, and to create them again.
Under some circumstances, however, a manual alignment can be done, but
it's an operation that ought to be performed at database level on the
Activiti / Flowable tables, which are distinct from Syncope's, even if
in the same database.
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/