assign roles from another domain
We will be setting up business terms initially in the New Business Term Glossary domain. We will allow the creator to specify which glossary domain they think the business term will eventually move to. Currently the approval process sends approval request to the folks listed on the New Business Term Domain. We want to change this to route to the approval to the people responsible for the proposed domain that the creator entered. Has anyone done this and have examples of the code? I know we can use API’s to look up the responsibilities of the proposed domain, but I always see roles assigned using this statement Role(Business Steward). How would I indicate the business steward of a different domain than the one I am currently working in?
abhishekasthana
·4 years ago · EditedHi @donna.pace.duke-energy.com
Here is a workflow I am working on, but it works for user task with community name computer in a script task as:-
In the highlighted script task:-
loggerApi.info(“Community Name: ${communityName}”)
execution.setVariable(“communityName”, communityName)
And in the User task:-
Hope this helps
Best Regards,
Abhishek A.
abhishekasthana
·4 years ago · EditedHi @donna.pace.duke-energy.com
I am working on something similar and referring to Voting Approval subprocess. This subprocess can be called from any Workflow.
Internally the VotingSubProcess uses API’s to build up the usernames to get approvals from as:-
<<< In start of votingsubprocess >>>
def voterUserExpression = execution.getVariable(“voterUserExpression”)
final Set voters = new HashSet<>();
for (String userExpression : utility.toList(voterUserExpression)) {
voters.addAll(users.getUserNames(userExpression));
}
If I get my WF working, I will share asap. Hope this above helps in the meantime.
Best Regards,
Abhishek A.
Alexandra Jorgenson
Admin4 years ago · Edited@donna.pace.duke-energy.com, I received this response internally from one of our Sales Engineers: “They can use a different candidate user expression. The one they’re looking for is
role(<roleName>; <communityName>; <vocabularyName>). If the community name isn’t selected then that would have to be fetched programmatically and then used in the expression.” Does this help?