public class ScriptExecutionCommand extends AbstractCclCommand
| Constructor and Description |
|---|
ScriptExecutionCommand(ScriptExecutionBuilder executionBuilder,
boolean authenticate)
Create a script execution command.
|
ScriptExecutionCommand(String scriptName,
List<com.cerner.ccl.j4ccl.adders.arguments.Argument> arguments,
boolean authenticate)
Create a script execution command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWithReplace(String recordName,
com.cerner.ccl.j4ccl.record.Record record)
Add a record structure to be referenced by the script.
|
void |
run(CclCommandTerminal terminal)
Run the command.
|
public ScriptExecutionCommand(String scriptName, List<com.cerner.ccl.j4ccl.adders.arguments.Argument> arguments, boolean authenticate)
scriptName - The name of the script to be executed.arguments - A List of Argument objects representing the arguments (if any) to be used in the
script execution.authenticate - Boolean flag indicating whether to authenticate with CCL when executing this script.NullPointerException - If any of the given arguments is null.public ScriptExecutionCommand(ScriptExecutionBuilder executionBuilder, boolean authenticate)
executionBuilder - The ScriptExecutionBuilder used to construct the internals of this command.authenticate - Boolean flag indicating whether to authenticate with CCL when executing this script.NullPointerException - If the given builder or arguments are null.public void addWithReplace(String recordName, com.cerner.ccl.j4ccl.record.Record record)
recordName - The name of the record structure.record - A Record object representing the record structure to be used.IllegalArgumentException - If the given record structure name is blank.NullPointerException - If the given record name is null or the record structure reference is null.public void run(CclCommandTerminal terminal)
AbstractCclCommandCclCommandTerminal object is connected and has an open CCL session.run in class AbstractCclCommandterminal - The CclCommandTerminal object through which CCL commands will be issued.Copyright © 2019. All rights reserved.