public class ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT
Only supports JSON or XML.
|
static String |
INPUT
The input object of type TYPE or String (if you set toObject)
|
static String |
JSON |
static String |
RESULT
The resulting object or String (if toObject is false it will be a
String).
|
static String |
TYPE
The target object type full qualified name (com.acme.Customer)
|
static String |
XML |
logThrownException| Constructor and Description |
|---|
ParserWorkItemHandler() |
ParserWorkItemHandler(ClassLoader cl) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortWorkItem(org.kie.api.runtime.process.WorkItem wi,
org.kie.api.runtime.process.WorkItemManager wim) |
protected Object |
convertJSONToObject(String input,
Class<?> type) |
protected Object |
convertToJSON(Object input) |
protected String |
convertToXML(Object input) |
protected Object |
convertXMLToObject(String input,
Class<?> type) |
void |
executeWorkItem(org.kie.api.runtime.process.WorkItem wi,
org.kie.api.runtime.process.WorkItemManager wim) |
handleException, handleException, setLogThrownExceptionpublic static final String JSON
public static final String XML
public static final String FORMAT
public static final String TYPE
public static final String INPUT
public static final String RESULT
public ParserWorkItemHandler()
public ParserWorkItemHandler(ClassLoader cl)
public void abortWorkItem(org.kie.api.runtime.process.WorkItem wi,
org.kie.api.runtime.process.WorkItemManager wim)
public void executeWorkItem(org.kie.api.runtime.process.WorkItem wi,
org.kie.api.runtime.process.WorkItemManager wim)
protected String convertToXML(Object input) throws JAXBException
JAXBExceptionprotected Object convertJSONToObject(String input, Class<?> type) throws com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionprotected Object convertToJSON(Object input) throws com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.