public class AutomationMapper extends Object
Modifier and Type | Field and Description |
---|---|
ScriptOperationContext |
ctx |
protected CoreSession |
session |
Constructor and Description |
---|
AutomationMapper(CoreSession session,
ScriptOperationContext operationContext) |
Modifier and Type | Method and Description |
---|---|
Object |
executeOperation(String opId,
Object input,
jdk.nashorn.api.scripting.ScriptObjectMirror parameters) |
protected Properties |
extractProperties(jdk.nashorn.api.scripting.ScriptObjectMirror parameters) |
void |
unwrapContext(ScriptOperationContext ctx,
Object inputOutput) |
protected Map<String,Object> |
unwrapParameters(jdk.nashorn.api.scripting.ScriptObjectMirror parameters) |
protected Object |
wrapContextAndOutput(Object output) |
protected final CoreSession session
public final ScriptOperationContext ctx
public AutomationMapper(CoreSession session, ScriptOperationContext operationContext)
public Object executeOperation(String opId, Object input, jdk.nashorn.api.scripting.ScriptObjectMirror parameters) throws Exception
Exception
public void unwrapContext(ScriptOperationContext ctx, Object inputOutput)
protected Properties extractProperties(jdk.nashorn.api.scripting.ScriptObjectMirror parameters)
protected Object wrapContextAndOutput(Object output)
protected Map<String,Object> unwrapParameters(jdk.nashorn.api.scripting.ScriptObjectMirror parameters)
Copyright © 2016 Nuxeo SA. All rights reserved.