The Script or SDK Script activities enable you to build a custom script using Workflow's Script Editor.
To Create a Script
Using the Script Editor
Tip: Review the Script Editor documentation for detailed information about each of the panes in the Script Editor.
Tip: To comment out text in C#, precede the text with //. In VB.NET, precede the text with '. You can also right-click and point to Advanced for commenting options.
Insert code you want run in place of Write your code here.
Once you begin typing code, the Script Editor's IntelliPrompt feature automatically provides suggestions and information as you code.
Tip: Right-click inside the Script Editor and point to IntelliPrompt to manually access IntelliPrompt.
To set a bookmark to a specific location in the editor, right-click an area and select Toggle Bookmark. Navigate to bookmarks by selecting Next Bookmark and Previous Bookmark.
To increase/decrease the indentation of the selected lines, right-click the selected lines, point to Advanced, and select Increase Indent or Decrease Indent.
Note: The Namespace of a script cannot be changed to ensure there are no naming conflicts between scripting activities.
C# Example
The following represents the C# code used to add a stamp to the entry specified in the activity's Script's Default Entry property box using an SDK Script activity.
VB.NET Example
The following represents the VB.NET code used to add a stamp to the entry specified in the activity's Script's Default Entry property box using an SDK Script activity.
Related Topics
This documentation is specific to version 9.0. You can find the most up-to-date help files for the latest version at Current Online Laserfiche Product Help Files. For further help or feedback, please see the Laserfiche Support Site. |
© 2013 Laserfiche |