Description
Ignores the activity placed within the Ignored Activities sequence.
Attributes
Common
- Continue on Error - True or False values to specify whether to continue executing the next activity even if an error is thrown on the current activity.
Misc
Display Name - Renames the activity.
Example
- Create a new workflow and save it as NewCommentOutWorkflow.xml.
- Add a Write Line activity inside the Sequence.
- In the Text field, enter "Hello!". This writes the word "Hello!" in the Output panel when executed.
- Add a Comment Out activity after the Write Line activity.
- Add another Write Line activity inside the Ignored Activities Sequence in the Comment Out Activity.
- In the Text field of the new Write Line activity, enter "This is a comment". The Write Line activity was supposed to write out the phrase "This is a comment" but because it is inside a Comment Out activity, it will be ignored and will not be written in the Output panel.
- When executed, the Sequence activity executes all the activities inside it except for the ones inside the Comment Out activity.
The use case should look like the following screenshot:
The output should look like this in the Output panel: