We are going to be onboarding a specific set of users through our normal Joiner workflow. In the Joiner, there is a step that send an email to the managers that their employee is set up.
However, this email is not wanted for this specific set of employees. Is there a way to make an exception to the workflow without having to create a new custom workflow?
Hi Alyson,
Please add a transition condition in your previous step of Send notification
<Transition to="Send Notification">
<Script>
<Source>
//condtion
Identity user=context.getObjectbyName(Identity.class,identityName);
if(user.getAttribute("location").equals("USA")){
return true;
}
return false;
</Source>
</Script>
</Transition>
or
if you define location variable in workflow, then you can use as below as well
<Transition to="Send Notification" when="script:("USA".equals(location) "/>