public class ScriptExecutionBuilder extends Object
| 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.
|
Collection<String> |
build()
Construct a set of commands that can be used to execute a given script.
|
static ScriptExecutionBuilder |
getBuilder(String scriptName)
Get a builder that can be used to execute a CCL script.
|
String |
getScriptName()
Get the name of the script to be executed.
|
ScriptExecutionBuilder |
withArguments(List<com.cerner.ccl.j4ccl.adders.arguments.Argument> arguments)
Create a builder that uses the given arguments.
|
public static ScriptExecutionBuilder getBuilder(String scriptName)
scriptName - The name of the script to be executed.ScriptExecutionBuilder object that can be used to execute a CCL script on a server.IllegalArgumentException - If the given script name is blank.NullPointerException - If the given script name is 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 Collection<String> build()
Collection of String objects representing the commands needed to execute the script
with the appropriate record structure references.public String getScriptName()
public ScriptExecutionBuilder withArguments(List<com.cerner.ccl.j4ccl.adders.arguments.Argument> arguments)
arguments - A List of Argument objects representing the arguments to be used in the script
execution.NullPointerException - If the given list of arguments is null.Copyright © 2019. All rights reserved.