Component definition
This component allows you to execute source code within your project.
LogicBase.Components.Scripting.dll
Component icon
Usage
To configure this component, double-click on the component. In the first step, enter all input variables you wish to declare, and set any parameter mappings you wish to describe. Click "Next" to go on to step 2. In step 2, set all information regarding your return variable (if any). Click "Next" to move on to step 3. In step 3, select your source code's language (e.g. Java, VB.NET, C#, etc.) and enter your source code in the appropriate field. Click "Next" to move on to step 4. Step 4 allows you to review and test your source code. Enter values for your input variables and select "Run Test" to test your source code. When finished, click the "Finish" button to complete configuration of your component.
Definition of component input value or values
You can decide in Step 1. Input Parameters whether to add Inputs or not.
Name |
Type |
Array |
Null Allowed |
Default Value |
Messsage |
Text |
|
|
|
Then click Edit Parameter Mappings to map a value from your Process.
Step 2. Result variable
Result variable type <no return>
Is Array
Result variable name
Step 3. Source Code
Choose your Language
Add any Namespaces
Add your Source Code
Step 4. Test Page
Add any Inputs and click Run Test.
This may not work depending on what type of code you are testing.
Definition of component output value or values
Depends if you have picked an Output in Step 2.Result variable
Connection information
N/A
Component settings
Usual Enabled etc
Use case
Example
You may want to run a specific, customized VB.NET or C# program from within you project. This component allows you to do so.
See some more Articles on Connect:
Workflow Tutorial: C# Scripting
https://www.symantec.com/connect/blogs/workflow-tutorial-c-scripting
Using a User Defined Type with the Script Component - Workflow
https://www.symantec.com/connect/articles/using-user-defined-type-script-component-workflow
Using Code Script Component with regex pattern (Workflow)
https://www.symantec.com/connect/downloads/using-code-script-component-regex-pattern-workflow
Custom C# Component – Adding a Computer to a Group in Active Directory
https://atmaworkflow.com/2015/04/17/custom-c-component-adding-a-computer-to-a-group-in-active-directory/