VMware Cloud Community
aenagy
Hot Shot
Hot Shot
Jump to solution

Is it possible to call an Action from within another Action [vRO 7.3]

Actions are a great way to build libraries for workflow but there are times when I would like to call an Action from another Action. I tried:

 

myResult = GetAction("MyModule","MyAction").call( 12345678.0 , "Hello world." );

 

... and that burst into flames. I also know about calling workflows from other workflow, but isn't what I'm looking for.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
qc4vmware
Virtuoso
Virtuoso
Jump to solution

You need to user System.getModule().  Try

var myResult = System.getModule("MyModule").MyAction(12345678.0 , "Hello world." );

View solution in original post

3 Replies
aenagy
Hot Shot
Hot Shot
Jump to solution

I figured this out while looking at another thread (https://code.vmware.com/forums/3055/vrealize-orchestrator#576165). The solution is:

 

System.getModule("MyModule").MyAction( 12345678.0 , "Hello world." );

qc4vmware
Virtuoso
Virtuoso
Jump to solution

You need to user System.getModule().  Try

var myResult = System.getModule("MyModule").MyAction(12345678.0 , "Hello world." );

aenagy
Hot Shot
Hot Shot
Jump to solution

🙂
0 Kudos