Script Runner

This component can be used for connecting it to a remote server/machine and running script files present there based on some events.

All component configurations are classified broadly into the following sections:

Please follow the given steps in the demonstration to use the Script Runner component in a pipeline workflow.

Configuring the Script Runner component in a Pipeline Workflow

Configuring the Script Runner Component

Accessing the Script Runner Component

The Script Runner component is provided under the Scripting section of the Component pallet.​

  • Drag and drop Script Runner Component to the Workflow Editor.

  • Open the dragged Script Runner component to open the component configuration tabs.

Basic Information Tab

The Basic Information tab opens by default.

  • Invocation Type: Select an Invocation type from the drop-down menu to confirm the running mode of the script runner component. The supported invocation types are Real-Time and Batch.

  • Deployment Type: It displays the deployment type for the component. This field comes pre-selected.

  • Container Image Version: It displays the image version for the docker container. This field comes pre-selected.

  • Failover Event: Select a failover event from the drop-down menu.

  • Batch Size (min 10): Provide the maximum number of records to be processed in one execution cycle (Min limit for this field is 10).

Meta Information Tab

Open the Meta Information tab and configure the required information.

  • Host: Host IP of the remote server/machine

  • Username: Username of the remote server/machine.

  • Port: Provide machine Port number.

  • Authentication: Select an authentication option from the drop-down menu.

    • Password: By selecting this option the user needs to pass the password.

    • PEM/PPK File: By selecting this option the user needs to pass the authentication file to connect to the server.

  • Script type: Choose the type of script file that You want to run out of SSH/ PERL/command options.

  • File path: Path of the file that is stored at the remote server.

  • File Name: The script file that you want to execute.

  • Event File Location: this is the location of the file sent through the file monitor (Non-mandatory).

Please Note: The displayed fields may vary based on the selected Authentication option.

Component Properties when the Authentication option is Password.

Component Properties when the Authentication option is PEM/PPK File.

Input Arguments

  • Manual Arguments (Optional): These are the arguments to the parameter of the script that the user can provide manually.

  • Event Arguments (Optional): These are the arguments to the parameter coming from the previous event/Kafka topic.

Saving the Component Configuration

  • Click the Save Component in Storage icon (A notification message appears to confirm the action completion).

  • The Script Runner component gets configured, and the notification message appears to inform the same.

Please Note: The component can connect to the remote machine using the details provided. It will pick the file from the location in that machine using the file name and file path respectively and finally execute the script after passing arguments (if any).

Limitations

a. It accepts only lists as input i.e. the in-event data should be a list.

b. It sends data on the out-event only when there is a print statement as output in the script if not there will be no data on the out-event.

c. The data produced from the script is of a list type.

Last updated

#65: 's Mar 27 changes

Change request updated