Views
Replies
Total Likes
Hi,
You can get them by searching workflow for transitions with your activity as target.
Transition object types can change depending on the activity (e.g. fork is weird), so just copy this and alter as needed:
var transitions = [];
for each (var activities in instance.activities) {
for each (var instanceActivity in activities) {
for each (var transition in instanceActivity.transitions) {
if (transition.target === activity.name) transitions.push(transition.name);
for each (var transition2 in transition) {
if (transition2.target === activity.name) transitions.push(transition2.name);
}
}
}
}
Thanks,
-Jon
Hi,
You can get them by searching workflow for transitions with your activity as target.
Transition object types can change depending on the activity (e.g. fork is weird), so just copy this and alter as needed:
var transitions = [];
for each (var activities in instance.activities) {
for each (var instanceActivity in activities) {
for each (var transition in instanceActivity.transitions) {
if (transition.target === activity.name) transitions.push(transition.name);
for each (var transition2 in transition) {
if (transition2.target === activity.name) transitions.push(transition2.name);
}
}
}
}
Thanks,
-Jon
Views
Replies
Total Likes
Views
Likes
Replies