public final class KnowledgeOperations extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsGlobals(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
Contains the globals.
|
static Object |
getInput(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
Gets the input.
|
static List<Object> |
getInputList(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
Gets an input (all) list.
|
static Map<String,Object> |
getInputMap(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
Gets an input map.
|
static List<Object> |
getInputOnlyList(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
Gets an input-only list.
|
static Map<String,Object> |
getInputOutputMap(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
Gets an input-output map.
|
static Map<String,List<Object>> |
getListMap(org.switchyard.Message message,
List<ExpressionMapping> expressionMappings,
boolean expand,
String undefinedVariable)
Gets a list map.
|
static void |
registerOperations(KnowledgeComponentImplementationModel model,
Map<String,KnowledgeOperation> operations,
KnowledgeOperation defaultOperation)
Registers operations.
|
static void |
setFaults(org.switchyard.Message message,
KnowledgeOperation operation,
Map<String,Object> contextOverrides)
Sets the faults.
|
static void |
setGlobals(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime,
boolean singleton)
Sets the globals.
|
static void |
setOutputs(org.switchyard.Message message,
KnowledgeOperation operation,
Map<String,Object> contextOverrides)
Sets the outputs.
|
static String |
toVariable(Object object)
Converts an object to a variable name.
|
public static void registerOperations(KnowledgeComponentImplementationModel model, Map<String,KnowledgeOperation> operations, KnowledgeOperation defaultOperation)
model - the modeloperations - the operationsdefaultOperation - the default operationpublic static void setGlobals(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime,
boolean singleton)
message - the messageoperation - the operationruntime - the runtime enginesingleton - singletonpublic static boolean containsGlobals(org.switchyard.Message message,
KnowledgeOperation operation,
KnowledgeRuntimeEngine runtime)
message - the messageoperation - the operationruntime - the runtime enginepublic static Object getInput(org.switchyard.Message message, KnowledgeOperation operation, KnowledgeRuntimeEngine runtime)
message - the messageoperation - the operationruntime - the runtime enginepublic static List<Object> getInputList(org.switchyard.Message message, KnowledgeOperation operation, KnowledgeRuntimeEngine runtime)
message - the messageoperation - the operationruntime - the runtime enginepublic static List<Object> getInputOnlyList(org.switchyard.Message message, KnowledgeOperation operation, KnowledgeRuntimeEngine runtime)
message - the messageoperation - the operationruntime - the runtime enginepublic static Map<String,Object> getInputOutputMap(org.switchyard.Message message, KnowledgeOperation operation, KnowledgeRuntimeEngine runtime)
message - the messageoperation - the operationruntime - the runtime enginepublic static Map<String,Object> getInputMap(org.switchyard.Message message, KnowledgeOperation operation, KnowledgeRuntimeEngine runtime)
message - the messageoperation - the operationruntime - the runtime enginepublic static void setOutputs(org.switchyard.Message message,
KnowledgeOperation operation,
Map<String,Object> contextOverrides)
message - the messageoperation - the operationcontextOverrides - the context overridespublic static void setFaults(org.switchyard.Message message,
KnowledgeOperation operation,
Map<String,Object> contextOverrides)
message - the messageoperation - the operationcontextOverrides - the context overridespublic static Map<String,List<Object>> getListMap(org.switchyard.Message message, List<ExpressionMapping> expressionMappings, boolean expand, String undefinedVariable)
message - the messageexpressionMappings - the expression mappingsexpand - whether to expandundefinedVariable - the undefined variable nameCopyright © 2013–2017 JBoss by Red Hat. All rights reserved.