here i need to check if the source is from ServiceNow autoapprove (initializer =none)it else just let initializer be “manager, owner” …but how to check if the source is from ServiceNow or not
<Variable initializer="manager, owner" input="true" name="approvalScheme"/>
<Step condition="script:((flow == null) || (!"UnlockAccount".equals(flow)))" icon="Task" name="Pre Split Approve" posX="518" posY="63">
<Arg name="approvalScheme">
<Script>
<Source>
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import sailpoint.tools.Util;
List schemes = Util.csvToList(approvalScheme);
List preSchemes = new ArrayList<String>();
for (String s : Util.safeIterable(schemes)) {
if (s.equals(approvalSplitPoint)) {
break;
} else {
preSchemes.add(s);
}
}
return Util.listToCsv(preSchemes);
</Source>
</Script>
</Arg>
Are you calling this workflow from service now using Launch workflow?
if so try to pass a workflow attribute flow or something similar and check against that
Nope i am calling this workflow from identityiiq … here i just need to check if the request source is Service now autoapprove it else rest will go to manager, owner…
I just need code logic to add to check if the request source is from service now or not
The source indicating where the request originated. This is a string representation of the sailpoint.object.Source enumeration. The default value of source is LCM.
How are you trigger the workflow in IdentityIQ?
What you are referring the “request source”?
Could you trigger the workflow and share the logs?
@autorun6464, Source provides information about how request is generated and it is enum value, you can check the source value from administrator console for provisioning transactions.
Right now according to what i under stand the request source is LCM and its going for approval for manager or owner… when i send request from service now its still going to owner … so i just wanted to know if there is any way to check maybe sailpoint.object.Source has ServiceNow so that we can set to none implying autoapprove it… Correct me if i am geeting it wrong
like if i send request from ServiceNow to sailpoint it should be autoapprove
Actually its access request LCM provisioning workflow. here i can i check if the request os from
Service now or not or do i need to change in approval sub process