Absent Member.. monitoring.live Absent Member..
Absent Member..
110 views

"Background scripts" in AM

Hi,

 

I've created a workflow that runs a certain script when the stock status of an asset is changed from a specific status to a different specific status (from "Pending installation" to "installed", they were created manually..)

 

When a user which is not an administrator changes this field and the workflow is triggered he gets an error message that he cannot run this script causing that user not to be able to make that update.

 

Is there a way to make a script a "background script" so it will run regardless to the user that triggers it and seamlessly?

 

Thanks!

0 Likes
1 Reply
Jason_Dowd Acclaimed Contributor.
Acclaimed Contributor.

Re: "Background scripts" in AM

Yes, you can make the workflow "Log event and process by server". Although the user still triggers it, the workflow activities are actually executed by the Automated Process Manager, and so run under whatever account it logs in as. Since this must be an Administrative account, it shouldn't have any problems executing the script.

 

However, because the workflow doesn't run until the execution group that it's assigned to executes on the APM, there is a delay between when it is triggered and when it processes, which depends on how often the APM triggers that execution group. You can make the delay quite short (I would not recommend faster than every 1 minute), but the user will not see the changes the workflow executes immediately no matter what.

Jason Dowd
HPE Software Support

If this post has helped you resolve the issue, please flag it as solved.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.