Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any way to extract a list of canned workflows from the latest version of WFA along with a description what they do? IHAC, that would like a gap analysis to see if there will be any scripting required on their part when the canned workflows in WFA are matched against current processes and procedures. We have a production instance of Provisioning/Protection manager to get information from if this would help us.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can access the WFs of WFA using REST with the following url and use them in your scripts
http://<wfaserver-or-localhost>:<port>/rest/workflows/
Regards
adai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Multiple ways to do it. Powershell3.0 and Rest API is the easiest one I think. The following is the sample code.
====
#Credentials of WFA. Modify as per your setup
$user = "admin"
$pass = "admin"
#Address: Modify as per your settings.
$add = "http://1.2.3.4/rest/workflows"
$secpasswd = ConvertTo-SecureString $pass -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ($user, $secpasswd)
$wf=Invoke-RestMethod -Uri $add -Method Get -Credential $creds -ContentType "application/xml" -Headers @{"Authorization"="Basic YWRtaW46YWRtaW4="}
$workflow = $wf.collection.workflow
foreach ( $wfk in $workflow ) {
$wfk.name
$wfk.description
}
=====
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're after the descriptions, parameters, etc of workflows, commands (including code), etc, you can use the WFA online Help | Reference Manual page.
- Tim
