Templates for scripts

The forms for workflows, copy methods, and equations contain templates for scripts. You specify the script between the Function and End Function in each template.

Workflow


Function wf_start() As Long
End Function
Function wf_return() As Long
End Function
Function wf_complete() As Long
End Function
Function wf_approve() As Long
End Function
...

Copy Method


Function execute() As Long
End Function

Equation


Function evaluate() As Long
End Function

In Workflow, you can delete events that do not have a script. You are not required to do so. The first action in a workflow must have some script in the wf_start event, even if it is only return 111.