Exec
Functionalities to aid code execution. It performs the execution of other scripts, it also supports the execution of scripts in other programming languages. Executes the indicated script, returning its output. Main functions:
// Run another App script in `server/core/`
const outputOutput = _exec.core("other-script");
// Run another App script in `server/services/`
const outputService = _exec.service("other-service");
// Pause for 2 seconds:`
_exec.sleep(2000);
// Execution stop:`
_exec.stop();
add
_exec.add(index: int, element: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
element | java.lang.Object |
Return
( Values )
_exec.add(o: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
o | java.lang.Object |
Return
( Values )
addAll
_exec.addAll(index: int, c: java.util.Collection) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
c | java.util.Collection |
Return
( boolean )
_exec.addAll(c: java.util.Collection) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
c | java.util.Collection |
Return
( boolean )
afterClose
_exec.afterClose(function: java.util.function.Function) : void
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
function | java.util.function.Function |
Return
( void )
as
_exec.as(o: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
o | java.lang.Object |
Return
( Values )
_exec.as(o: java.lang.Object, oDefault: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
o | java.lang.Object | |
oDefault | java.lang.Object |
Return
( Values )
asBoolean
_exec.asBoolean(index: int) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int |
Return
( boolean )
_exec.asBoolean(index: int, defaultValue: boolean) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
defaultValue | boolean |
Return
( boolean )
_exec.asBoolean(key: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string |
Return
( boolean )
_exec.asBoolean(key: string, defaultValue: boolean) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | |
defaultValue | boolean |
Return
( boolean )
asByte
_exec.asByte(index: int) : byte
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int |
Return
( byte )
_exec.asByte(index: int, defaultValue: byte) : byte
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
defaultValue | byte |