@Category(value="NN-Special") public class Adios2XmlPipe extends FixedForwardPipe
Sample xml:
<adios rekenbox="L76HB150">
<rubriek naam="BER_VERZ_CD" waarde="COMBIFLEX_BELEGGING" />
<rubriek naam="INBR_CD" waarde="NIEUWE_VERZEKERING" />
<rubriek naam="PENS_DT_BEP_CD" waarde="DT_UIT_PENS_LFT" />
<rubriek nummer="313" naam="AS_OPSL_PRD_TRM_PRM" index="3" recordnr="74" record="VUT_VERZEKERING" waarde="52.34" />
...
</adios>
Modifier and Type | Class and Description |
---|---|
static class |
Adios2XmlPipe.Direction |
Modifier and Type | Field and Description |
---|---|
protected static String |
recordIdentifier |
protected static String |
rubriekIdentifier |
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
Adios2XmlPipe() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(String item,
XmlBuilder builder,
Map nummer2naam,
String naamLabel,
String nummerLabel,
String indexLabel) |
void |
configure()
checks for correct configuration of forward
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
String |
findRekenbox(PipeLineSession session) |
String |
getAdiosDefinities() |
Adios2XmlPipe.Direction |
getDirection() |
String |
getNoConversionForwardName() |
String |
getRekenbox() |
String |
getRekenboxSessionKey() |
protected void |
initializeConversionTables() |
String |
makeAdios(InputSource bericht,
PipeLineSession session) |
String |
makeXml(String s,
PipeLineSession session)
The calcbox tool Adios exports the file "NNRSCONS.PAS" = adiosDefinities in configuration attributes.
|
void |
setAdiosDefinities(String newAdiosDefinities)
sets URL to the pascal file with label-constants generated by the ADIOS-utility.
|
void |
setDirection(Adios2XmlPipe.Direction direction)
Transformation direction.
|
void |
setNoConversionForwardName(String string)
Sets the name of the forward used when no conversion to XML was performed, because the input was already XML.
|
void |
setRekenbox(String newRekenbox)
Sets name of the rekenbox to be called
|
void |
setRekenboxSessionKey(String newRekenboxSessionKey)
Name of the SessionKey to retrieve the rekenbox name from
|
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, getParameterOverriddenAttributeValue, getParameterValueList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
protected static final String recordIdentifier
protected static final String rubriekIdentifier
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
AbstractPipe
doPipe
in interface IPipe
doPipe
in class AbstractPipe
PipeRunException
protected void initializeConversionTables() throws ConfigurationException
ConfigurationException
public String findRekenbox(PipeLineSession session) throws PipeRunException
PipeRunException
public String makeAdios(InputSource bericht, PipeLineSession session) throws PipeRunException
PipeRunException
public String makeXml(String s, PipeLineSession session) throws PipeRunException
PipeRunException
public void addItem(String item, XmlBuilder builder, Map nummer2naam, String naamLabel, String nummerLabel, String indexLabel)
public void setAdiosDefinities(String newAdiosDefinities)
public String getAdiosDefinities()
public void setDirection(Adios2XmlPipe.Direction direction)
public Adios2XmlPipe.Direction getDirection()
public void setRekenbox(String newRekenbox)
public String getRekenbox()
public void setRekenboxSessionKey(String newRekenboxSessionKey)
public String getRekenboxSessionKey()
public void setNoConversionForwardName(String string)
public String getNoConversionForwardName()
Copyright © 2023 Frank!Framework. All rights reserved.