ExecuteCSharpScript

ExecuteCSharpScript

What to use it for

Prerequisites for usage

Essential properties to set

Executes a C# script, allowing non-standard processing of document attributes or of document content files.

This activity should only be used by experienced implementers.

C# script.

Script file name

Options for SmartBridge 3

Primary options

 

Option

What is it

How to use it

Current document

  

Script filename

 Add the full path to the script's file name.
Referenced assemblies Comma separated list of full paths of the referenced assemblies.

All options

 Click here to expand...

C# script definition

 

Input options

 

Misc

 

 

Options for SmartBridge 2

 Click here to expand...

 

Activity

Every Workflow Activity needs to have a name, and be configured to be either on or off. These generic properties are part of the Activity properties.

Option

What is it

How to use it

Name

 

A unique name for the Activity. Names are used for two reasons:

  • So you are able to identify the activity throughout the Workflow.
  • More importantly, a name is essential in case you want one Activity to refer to another, specific Activity.
  • Leave the generated name (default)
  • Or enter a unique name.

Description

Description of the activity, to give others some context about the Activity.

Enter an optional description.

Enabled

 


Specifies if the Activity should be enabled or not.

Disabled Activities will be skipped during Workflow execution and validation.

Select option from the dropdown:

  • True – Enables the Activity (default).
  • False – Disables the Activity.

Recommended: True

Document identification

In case you use the Clone Activity, SmartBridge will use this property to identify cloned documents.

Option

What is it

How to use it

Document Key

Only relevant for Workflows that contain a CloneDocument Activity.

The key of the cloned document to be used for processing.

 Click here to expand...

When creating a clone of the document (using the CloneDocument activity) you need to specify whether SmartBridge should process the clone or the original. When you have specified a Document Key, SmartBridge will assign the Document Key to cloned documents. With the Document Key assigned to cloned documents, you will be able to refer to the clones for further processing.

  • Leave empty if the activity should process the original document (default).
  • Enter or assign the Clone Document Key if the activity should process a clone document.

Recommended: Leave empty when you are not using a Clone Activity.

In SmartBridge 3 this option is replaced with 'Input Options'.

Misc

 

Option

What is it

How to use it

DictionaryAdapterFactory

  

ScriptBaseConfiguration

  

 

Script references

 

Option

What is it

How to use it

Script assembly references

  

 

Script source

Property

What is it

How to use it

Script file name

  

 

On this page