B

17 Messages

 • 

1.2K Points

Thursday, May 2nd, 2024 2:39 PM

Proposed values list syntax

I have a list of domains that I would like to set in Proposed values that look like this:

[00000000-0000-0000-0000-000000006013, 7264eeac-8ec0-40ec-9b55-8cb8edbcb8e1]

Can you help me with syntax how can I include the script variable into a proposed value only so that only domains from the list are shown in the dropdown menu?

66 Messages

 • 

1.5K Points

18 days ago

This is how it should look:

17 Messages

 • 

1.2K Points

@SeanPyle Thank you.

But the problem is that when you open the form (as you want to start workflow), the process still hasn't started and I'm making this list in the process so there is nothing in the variable allDomain or subjectMatterExperts when the form is opened.

I'm using this code for making this list of domains:

def allDomains = domainApi.findDomains(
	FindDomainsRequest.builder()
	  .communityId(currentCommunityId)
      .typeId(domainApi.getDomain(item.getDomainId()).type.id)
	  .build()).results.id.collect { "\"$it\"" };

17 Messages

 • 

1.1K Points

Hi @bbaric ,

I guess you can have your start form in a User Task and You can add a script task before it to initiate the variables.

Hope this helps,
Paresh

Loading...