VMware Cloud Community
Hemalathamuthus
Contributor
Contributor

Provide Script For Desicion Activity ..?

Hi Team ,

I want to execute like once Create a computer work flow element finished and its results passed to  Decision activity . In that it should evaluate the output of create computer work flow even case of success / failure - It should send mail by using mail notification.Please any one guide me on this work flow.

NOTE : Desicion Activity have to capture both success/ failure output of previous element.

doubt.PNG

Regards,

Hemalatha M

TechM

0 Kudos
1 Reply
ChristianWehner
VMware Employee
VMware Employee

Hi Hemalatha,

a decision activity decides its post way by the return boolean inside the decision activity. Here an example:

if ( 1 > 0 )

{

   return true; //Now follows the way with the green arrow

}

else

{

   return false; // Now follows the way with the red arrow

}

So simply use the output of your "Create a computer i..:" workflow as input for your decision activity and build a decision inside which returns true or false even what is in your case correct.

Regards,

Chris

0 Kudos