What is the difference between ContinueOnError and AlterIfDisabled Property?

Good Day.

May I know the difference in definition and practical scenarios between ContinueOnError and AlterIfDisabled Property? Thank you.

Best regards,
Robert Russell Monsalud

Hi @RobertRussell_Monsalud

ContinueOnError is a property, which specifies whether the workflow should continue or stop when an error occurs. If the ContinueOnError property is set to True, the activity will continue executing the remaining activities even if an error occurs. If set to False, it will stop executing and throw an exception when an error occurs.

Ex: When you have a workflow that involves multiple activities, and if one of them encounters an error, you want to continue executing the remaining without stopping the workflow. In this scenario, you can set the ContinueOnError property of the activities to True.

On the other hand, AlterIfDisabled is a property which specifies whether the activity is enabled or disabled. If the AlterIfDisabled property is set to True, it means that the activity can be enabled or disabled dynamically at runtime.

Ex: Suppose you have a workflow that involves multiple activities, and you want to disable certain activities based on a condition. In this scenario, you can set the AlterIfDisabled property of the activities to True. Then, you can use an If activity to check the condition, and set the Enabled property of the activities to True or False based on the condition.

Hope this helps,
Best Regards.

5 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.