- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Morpheus Node.js scripting task plugin?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022 08:26 AM
06-21-2022 08:26 AM
Morpheus Node.js scripting task plugin?
Is this useful in the community? One obvious upside is the modern Ecmascript support - I often found the Nashorn engine lacked a few bits and pieces.
Feedback, as always, immensely appreciated.
- Tags:
- automation
- Tasks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022 08:34 AM
06-21-2022 08:34 AM
Re: Morpheus Node.js scripting task plugin?
This is pretty cool Ollie! I see you have a TODO to add Morpheus vars. Does the output function along the same lines as built-in Morpheus tasks? Can we select a result type and access the results as such? I see you are using local scripts as well. Any plans on allowing for repo access?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2022 03:33 AM
06-22-2022 03:33 AM
Re: Morpheus Node.js scripting task plugin?
Awesome work @ollie its a cool use of the tasks plugins.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022 08:53 AM
06-21-2022 08:53 AM
Re: Morpheus Node.js scripting task plugin?
Hey Sean,
In principle I can add the morpheus vars, though I had some issues (probably with me) when I tried previously on a golang task - but I’m sure I can work past them.
Local scripts for the moment - mainly because I’m making the user split their code into a require
section and a code body. Hope to work past that too.
Re results, I’ve tested in a workflow with single value result, which works fine.
Not sure about the other result types as I haven’t used them too much.