aenagy
Hot Shot
Hot Shot

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

Jump to solution

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.

0 Kudos
1 Solution

Accepted Solutions
qc4vmware
Virtuoso
Virtuoso

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

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." );

0 Kudos
qc4vmware
Virtuoso
Virtuoso

You need to user System.getModule().  Try

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

View solution in original post

aenagy
Hot Shot
Hot Shot
🙂
0 Kudos