udclient [global-args...] [global-flags...]
createApplicationProcess [JSON file]
{
"application": "Application ID",
"description": "Description. This template includes one
step, which deploys a component.",
"inventoryManagementType": "The inventory management for
the process request, such as AUTOMATIC",
"name": "Application process name",
"offlineAgentHandling": "PRE_EXECUTION_CHECK",
"propDefs": [{
"label": "Property label",
"name": "Property name",
"type": "TEXT"
}],
"properties": [{
"description": "Description",
"name": "Property name",
"secure": true,
"value": "Property value"
}],
"requiredRoleId": "Required Role Name or ID",
"rootActivity": {
"children": [
{
"children": [{
"children": [{
"allowFailure": false,
"children": [],
"componentName": "Component name",
"componentProcessName": "Component process
name",
"name": "First step name",
"properties": {},
"type": "componentProcess"
}],
"componentName": "Component name",
"name": "inventoryVersionCheck",
"status": "Active",
"type": "inventoryVersionDiff"
}],
"componentName": "Component name",
"failFast": "false",
"maxIteration": "-1",
"name": "First step name",
"runOnlyOnFirst": "false",
"type": "componentEnvironmentIterator"
},
{
"children": [],
"name": "FINISH",
"type": "finish"
}
],
"edges": [
{
"to": "First step name",
"type": "ALWAYS",
"value": ""
},
{
"from": "First step name",
"to": "FINISH",
"type": "ALWAYS",
"value": ""
}
],
"name": "GRAPH",
"offsets": [
{
"name": "First step name",
"x": "-35",
"y": "210"
},
{
"name": "FINISH",
"x": "0",
"y": "420"
}
],
"propDefs": [],
"type": "graph",
"versionPresets": []
}
}
udclient -username jsmith -password passwd
-weburl https://myserver.example.com:8443
createApplication newApplicationProcess.json
The following example request creates an application process that deploys a component.
{
"name": "My new application process",
"application": "79f33ffb-9d72-4967-9146-dc252eaea706",
"description": "New application process for command example",
"inventoryManagementType": "AUTOMATIC",
"offlineAgentHandling": "PRE_EXECUTION_CHECK",
"rootActivity": {
"type": "graph",
"name": "GRAPH",
"edges": [
{
"to": "Deploy component",
"type": "ALWAYS",
"value": ""
},
{
"to": "FINISH",
"from": "Deploy component",
"type": "ALWAYS",
"value": ""
}
],
"offsets": [
{
"name": "Deploy component",
"x": "-35",
"y": "210"
},
{
"name": "FINISH",
"x": "0",
"y": "420"
}
],
"children": [
{
"componentName": "Component Y",
"failFast": "false",
"runOnlyOnFirst": "false",
"maxIteration": "-1",
"type": "componentEnvironmentIterator",
"name": "Deploy component",
"children": [
{
"componentName": "Component Y",
"status": "Active",
"type": "inventoryVersionDiff",
"name": "inventoryVersionCheck",
"children": [
{
"componentName": "Component Y",
"componentProcessName": "Deploy Component Y",
"allowFailure": false,
"properties": {
},
"type": "componentProcess",
"name": "Deploy component",
"children": [
]
}
]
}
]
},
{
"type": "finish",
"name": "FINISH",
"children": [
]
}
],
"propDefs": [
]
}
}
{
"id": "80d98207-3012-4d9f-858e-0b3aea2ce489",
"name": "My new application process",
"description": "New application process for command example",
"active": true,
"inventoryManagementType": "AUTOMATIC",
"offlineAgentHandling": "PRE_EXECUTION_CHECK",
"versionCount": 1,
"version": 1,
"commit": 0,
"path": "applications/79f33ffb-9d72-4967-9146-dc252eaea706/processes/80d98207-3012-4d9f-858e-0b3aea2ce489"
}
Related REST command: Create an application process.