imtrinity94
Enthusiast
Enthusiast

Access workflow item inside scriptable task

Jump to solution

Is there a way to get the workflow item name inside the same scriptable task? (For eg, item0 is a scriptable tasks with name = Rename a VM)


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
Labels (1)
0 Kudos
1 Solution

Accepted Solutions
emacintosh
Enthusiast
Enthusiast

I think this will get it for you?  

System.currentWorkflowItem().getDisplayName()  // get "Rename a VM"
System.currentWorkflowItem().getName()    // get the Item0

View solution in original post

Tags (1)
0 Kudos
4 Replies
emacintosh
Enthusiast
Enthusiast

I think this will get it for you?  

System.currentWorkflowItem().getDisplayName()  // get "Rename a VM"
System.currentWorkflowItem().getName()    // get the Item0
Tags (1)
0 Kudos
imtrinity94
Enthusiast
Enthusiast

Thanks mate. I just overlooked this method earlier.


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
0 Kudos
xian_
Expert
Expert

Is this a vRO8 thing only? Works fine with vRO 8.3 but fails with vRO 7.6

0 Kudos
emacintosh
Enthusiast
Enthusiast

According to the article I was referencing (below), it does seem like this approach is available starting in 8.0.  Not sure if there is a 7.x equivalent...

How To get currently executed item name in vRO - Ivo Gaydajiev's Blog