Veröffentlicht Wed, 27 Oct 2021 05:04:31 GMT von Tiago Matos CoreForm Business Technology - Software Implementation Specialist
Hello

I'm getting this message for the workflow activity "Assign to".

The assign to activity should assign to an user group that was previously assigned to an workflow variable of type "user of a group"

Thanks
Tiago
Veröffentlicht Wed, 03 Nov 2021 05:04:31 GMT von Matthias Wieland DocuWare Europe GmbH Sr. Director Support EMEA
Dear Tiago Matos! It looks like the Community cannot answer your question. That's why we have opened a Support Request with the Number SR-163176-F5M1Z for you. A Software Support Specialist will contact you directly to follow up. We will update this thread with the solution as soon as we have resolved the Support Request. With best regards, DocuWare Support Team
Veröffentlicht Tue, 09 Nov 2021 08:33:18 GMT von Fabian Kall - left 01.22
Most likely your user variable has never been assigned a value or it a value has been assigned that cannot be implicitly converted to a user object.

More subtle cases for this error:
- It is possible to create users with whitespace at the end of the login name ("John Doe "). This has tripped me up with the same error message, because you then cannot assign the text "John Doe" fto a user variable.
- I have had the suspicion in the past that this can occur after using one of the new activities where you have a workflow instance wait for some time. The assignment might the fail even if the user variable has been correctly used before.

Check the workflow history for assignments to you user variable.
Veröffentlicht Tue, 09 Nov 2021 13:43:30 GMT von Tiago Matos CoreForm Business Technology - Software Implementation Specialist
Hi Fabian,

I have a workflow variable called "Approver1". The type of my workflow variable is "user of a group".
The value that I'm trying to assign to "Approver1" is the result of the following query:
"SELECT Approver1 FROM Approval Matrix WHERE DW_DEPOT = GV_Depot and DW_DOCUMENT_TYPE = GV_DocumentType"
The result of this query will return as "Approver1" the name of a user group. That user group will match against one of the"(Docuware > Configurations > User Management > Groups)"

I also tested the workflow variable "Approver1" with the flag "list variables" checked. But I got the same issue.
So the problem is actually when I try to assign a value to the workflow variable but in fact it is assigning nothing. Then the "Assign To" task shows that issue.

I provided an copy of my workflow and file cabinet configuration to Danilo Perez from Docuware support.
His team was going to test if that scenario that I want to achieve is possible or not.

Link for reference related workflow variable of type "User of a Group"
help.docuware.com/#/home/58675/2/2


Thanks
Tiago
Veröffentlicht Tue, 09 Nov 2021 13:51:48 GMT von Martin Zebedies Uriot GmbH & Co. KG Head of Solution Consulting

Hi Tiago,


your description shows the problem.
you are assigning a "group" to the variable "user of a group".
you can only assign a user not a whole group here.

are you working with groups roles and users?

then try the role variable, here you can assign the role which is connected to the group, then every user get the task.
 

Veröffentlicht Wed, 10 Nov 2021 07:31:24 GMT von Fabian Kall - left 01.22
Hello Tiago, 
Martin is right. Assigning the name of a group to a variable of type "user of a group" will not work, but you can achieve your results with these steps:

- create a role "Approver1" and make the group "Approver1" it's member. Do this for all possible results of your SQL query
- create a global variable of type "role" 
- assign the result of you sql query to this variable
- use this global variable in the "Assign to" - activity.

If your sql query can return multiple results, make the global variable of type role a "list variable".

 
Veröffentlicht Thu, 11 Nov 2021 04:43:33 GMT von Tiago Matos CoreForm Business Technology - Software Implementation Specialist
Hi Fabian and Martin

I just tested with the role variable and that will work.
But I'll need to do some adjustments on the user management configuration, since the users are not linked to roles, but are linked to groups. It would be nice if we have a workflow variable of type group in the future.

Thanks for your help and also thanks for Danilo Peres from Docuware support.

Tiago

Sie müssen angemeldet sein um Beiträge in den Foren zu erstellen.