Scripting requirements

The requirements for Optiva Scripting are explained in this section.

  • In the Workflow, the Start action must be the first action.
  • The Start action must contain something in it, even if it is only: Return 111.
  • For comments, you must use the single quote character ( ' ), not the angled mark (‘).
    
     'Declare an object variable.
     Dim oitemCode As Object 'This declares the variable.
    
  • The parenthesis after the function must not have a space before it. For example, there is no space after MessageList.
    
     MessageList("Hello")
    
  • Scripts for workflows, copy methods, equations and event hooks have a default size of 100,000 characters. The actual script is stored in a CLOB.