Tutorial

Tutorial 6: Creating a Form 125
Creating the Tasks and Forms
Component Execute Groovy Script
Last Modified Time
Public No
Deprecated No
Comments
Context Help
Context Inputs
Configuration
Groovy Script def hostName = @contextIn["hostName"]; def operatingSystem =
@contextIn["operatingSystem"]; println hostName; println operatingSystem;
topSrv = server.get("TopologyService"); hostIns =
topSrv.getObjectShell(topSrv.getType(operatingSystem+"_Host"));
hostIns.set("name", hostName); objects = topSrv.mergeData(hostIns);
Flow
Action Base exit
Flow type Update
Action An Error Occurred
Flow type Update
Remove Host
Module tasktutorial
Name Remove Host
Component Execute Groovy Script
Last Modified Time
Public No
Key Usage Data Source Type Data Type Default
Value
hostName Required Common String
operatingSystem Required Common String