Skip to end of banner
Go to start of banner

Set Data Code and Get Data Code Methods.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

SetDataCode Event runs before your activity executes and is useful to initialize/set your activity properties.

GetDataCode Event runs after your activity executes and is useful to output your activities values or set other workflow properties.

The Set Data Code and Get Data Code methods work exactly the same way as our Before and After execute event handlers do. The only difference is that when you use Before and After execute event handlers, it creates two separate classes for each, whereas when you use Set and Get Data Code methods, all the code is in just one class or at one place, which is easier to debug and read as well.

  • No labels