Scripts

This Help topic refers to the following editions:
þ
Enterprise þ Professional  þ Small Business
.

 

You can use scripts in DX Workflow Studio, like in the Script Block or during a transition

 

Scripts are a powerful way to customize your workflow definition. You can do various tasks with a script block that would not be possible to do with other blocks. The default syntax language for script is Pascal. So, you can do almost everything you can do in regular Pascal.

 

Scripts are also a way to manipulate workflow variables, which can be attached to Index Set Fields to automatically update their values during a workflow.  In scripts they are just regular variables. For example, if you have defined a workflow variable named "TotalAmount", you can read the variable value using this code:

 

//Calculate comission for the sale
Comission := TotalAmount * 0.2;

 

and also change the variable value using this code:

 

//Increase TotalAmount by 15%
TotalAmount := TotalAmount * 1.15;