


Hi Team,
i have a requirement where i need dto get the name of the delivery used in continous delivery component before it's execution : like the image below in the javascript node i want the label of the delivery template which is used in continous delivery. Can anyone suggest
here is what i see when i query my workflow for deliveries and xml data :
hi kapil,
Below are the results i am seeing when i use query def :
i have two continous delivery components inside my workflow :
i need this name inside the continous delivery :
Solved! Go to Solution.
Views
Replies
Sign in to like this content
Total Likes
Hi ,
If you check the workflow XML all continuous delivery saved between <notification> Tag. Inside Notification tag there is one field name as "scenario-cs" . This field saves the label of the delivery template which that continuous delivery contains.
So what you need to do is :
xmldata is [queryDef of xtk:workflow]
var activityXML = xmldata.workflow.activities.notification;
for each (var child in activityXML)
{
logInfo("Retrieve fields value ->"+child.@label)
}
Hello @Ramaswami ,
Use can query the workflow schema via javascript and then pull the deliveries attached to that workflow to get the name/label for the delivery.
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
Hi ,
If you check the workflow XML all continuous delivery saved between <notification> Tag. Inside Notification tag there is one field name as "scenario-cs" . This field saves the label of the delivery template which that continuous delivery contains.
So what you need to do is :
xmldata is [queryDef of xtk:workflow]
var activityXML = xmldata.workflow.activities.notification;
for each (var child in activityXML)
{
logInfo("Retrieve fields value ->"+child.@label)
}
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes