Video Screencast Help
Protect Your POS Environment Against Retail Data Breaches. Learn More.

Using the Script Generator in Workflow

Created: 23 Sep 2012 • Updated: 24 Sep 2012 | 2 comments
reecardo's picture
+3 3 Votes
Login to vote
Symantec single video player.

This is a how to video on using the Script Generator in Workflow. In this video, you will see how to create an “even or odd” multipath component and use the component in a workflow.

Note: Completing the steps in this video and using the Script Generator requires some knowledge of C#. It would also be helpful to understand the Workflow component API.

For more information, please see the guide at the following location:
www.symantec.com/docs/DOC4824

Comments 2 CommentsJump to latest comment

reecardo's picture

Some more info regarding the scripting piece. Although my example is pretty simple, you can do some pretty advanced stuff.

If you want to use types in another namespace, just prefix the type with the namespace; don't use a using clause in the script block.

i.e.

This is bad:

using System.DirectoryServices;

DirectoryEntry entry = new DirectoryEntry("LDAP://blah");

This is good:

System.DirectoryServices.DirectoryEntry entry = new System.DirectoryServices.DirectoryEntry("LDAP://blah");

0
Login to vote
Rich Nahra's picture

if you follow reecardo's example remember to always call dispose on your directory entry.  

Entry.Dispose();

DirectoryEntries have a well known bug in the underlying COM object that causes memory leaks.  

0
Login to vote