R

70 Messages

Wednesday, December 28th, 2022 6:23 PM

Default Value in Workflow User Task

Hi ,

A user task can store a default value when we specify something :
image

I am working on a workflow which gets all attributes in an asset, populates the list of attribute to users in dynamicEnum, the user on choosing any of the attribute, gets another user task ,wherein the user get the stored(I am using this as default in above screenshot) value and can propose to change it and then the voting process is called.

On the first atribute, the workflow shows the correct default value of the attribute, however, while on loop (if user decides to edit multiple atribute (not date and multi value attributes)), the default value remains the same of the first attribute.

I checked in logs, the variable populates the correct value for 2nd attributes. I have also used execution.setVariable(“attributeToAddList”, " ") and execution.removeVariable(“attributeToAddList”), but it doesn’t seems to work.

Does anyone has a workaround ?

Regards,
Ravi

690 Messages

 • 

17.6K Points

2 years ago

@ravi_collibra, hopefully someone from the community will chime in but, in the meantime, this seems like a good candidate for our Coaching Services team (https://productresources.collibra.com/coaching-services/). Reach out to your Account Manager (@john.bell ?) or email [email protected] and I would recommend that you reference the URL of this thread.

161 Messages

 • 

550 Points

2 years ago

Hey @ravi_collibra

If this User Task is in a Subprocess, might it be the case that you need to define a local variable here?
execution.setVariableLocal(“attributeToAddList”, ...)

Cheers,
Tom

70 Messages

2 years ago

Thank you for your response @kristen.freer @tom.friesen.

I found out a solution, not only the default variable but also the form variable itself “value” need to be reassigned.

Thanks,
Ravi

Loading...