de.innovationgate.wga.server.api
public class TMLScript extends Object
Modifier and Type | Method and Description |
---|---|
Object |
exportJsonData(javax.json.JsonStructure dataObject)
Converts Json data into the TMLScript form, ready to be injected to a script
|
javax.json.JsonStructure |
importJsonData(Object dataObject)
Converts JSON data objects created in TMLScript into their Java form
|
Object |
runExpression(Context context,
String expression)
Runs a TMLScript expression
|
Object |
runExpression(Context cx,
String expression,
Map<String,Object> extraObjects)
Runs a TMLScript expression
|
Object |
runExpression(Design design,
Context cx,
String expression)
Runs a TMLScript expression
|
Object |
runExpression(Design design,
Context cx,
String expression,
Map<String,Object> extraObjects)
Runs a TMLScript expression
|
Object |
runExpression(Design design,
String expression)
Runs a TMLScript expression
Uses the WebTML context of the environment and is therefor only usable in WebTML/TMLScript environments.
|
Object |
runScript(Context context,
String expression)
Runs a TMLScript script
|
Object |
runScript(Context cx,
String expression,
Map<String,Object> extraObjects)
Runs a TMLScript script
|
Object |
runScript(Design design,
Context cx,
String expression)
Runs a TMLScript script
|
Object |
runScript(Design design,
Context cx,
String expression,
Map<String,Object> extraObjects)
Runs a TMLScript script
|
Object |
runScript(Design design,
String expression)
Runs a TMLScript script
Uses the WebTML context of the environment and is therefor only usable in WebTML/TMLScript environments.
|
public Object runExpression(Design design, String expression) throws de.innovationgate.webgate.api.WGException
design
- Base design context to run the expression underexpression
- The expressionWGAServerException
de.innovationgate.webgate.api.WGException
public Object runExpression(Context context, String expression) throws de.innovationgate.webgate.api.WGException
context
- WebTML context under which the expression runs and whose design context is usedexpression
- The expressionWGAServerException
de.innovationgate.webgate.api.WGException
public Object runExpression(Design design, Context cx, String expression) throws de.innovationgate.webgate.api.WGException
design
- Base design context to run the expression forcx
- WebTML context under which the expression runsexpression
- The expressionWGAServerException
de.innovationgate.webgate.api.WGException
public Object runExpression(Design design, Context cx, String expression, Map<String,Object> extraObjects) throws de.innovationgate.webgate.api.WGException
design
- Base design context to run the expression forcx
- WebTML context under which the expression runsexpression
- The expressionextraObjects
- Objects to available to the expression. Keys are object names, their values the objects.WGAServerException
de.innovationgate.webgate.api.WGException
public Object runExpression(Context cx, String expression, Map<String,Object> extraObjects) throws de.innovationgate.webgate.api.WGException
cx
- WebTML context under which the expression runs and whose design context is usedexpression
- The expressionextraObjects
- Objects to available to the expression. Keys are object names, their values the objects.WGAServerException
de.innovationgate.webgate.api.WGException
public Object runScript(Design design, String expression) throws de.innovationgate.webgate.api.WGException
design
- Base design context to run the script underexpression
- The scriptWGAServerException
de.innovationgate.webgate.api.WGException
public Object runScript(Context context, String expression) throws de.innovationgate.webgate.api.WGException
context
- WebTML context under which the expression runs and whose design context is usedexpression
- The scriptWGAServerException
de.innovationgate.webgate.api.WGException
public Object runScript(Design design, Context cx, String expression) throws de.innovationgate.webgate.api.WGException
design
- Base design context to run the script undercx
- WebTML context under which the expression runsexpression
- The scriptWGAServerException
de.innovationgate.webgate.api.WGException
public Object runScript(Design design, Context cx, String expression, Map<String,Object> extraObjects) throws de.innovationgate.webgate.api.WGException
design
- Base design context to run the script undercx
- WebTML context under which the expression runsexpression
- The scriptextraObjects
- Objects to available to the script. Keys are object names, their values the objects.WGAServerException
de.innovationgate.webgate.api.WGException
public Object runScript(Context cx, String expression, Map<String,Object> extraObjects) throws de.innovationgate.webgate.api.WGException
cx
- WebTML context under which the expression runs and whose design context is usedexpression
- The scriptextraObjects
- Objects to available to the script. Keys are object names, their values the objects.WGAServerException
de.innovationgate.webgate.api.WGException
public javax.json.JsonStructure importJsonData(Object dataObject) throws de.innovationgate.webgate.api.WGException
dataObject
- The data object created in TMLScriptde.innovationgate.webgate.api.WGException
public Object exportJsonData(javax.json.JsonStructure dataObject) throws de.innovationgate.webgate.api.WGException
dataObject
- The data object created in TMLScriptde.innovationgate.webgate.api.WGException