public class DynamicPipelineNode extends Node
The DynamicPipelineNode tries to build a dynamic workflow pipeline with the goal of converting whatever stream is presented to it into a common output format.
This node can be configured with an XML ruleset that defines which node shall be called depending on the input's MIME type.
For a more flexible way of deciding what to do, use theScriptNode
.Modifier and Type | Class and Description |
---|---|
static class |
DynamicPipelineNode.UnhandledInputAction
A choice of possible actions to take upon encountering an input stream of
an unknown/unhandled type.
|
Node.Cardinality
Modifier and Type | Field and Description |
---|---|
static String |
ANY_TYPE |
static URI |
DEFAULT_RULESET
The location of the default ruleset to use
|
Constructor and Description |
---|
DynamicPipelineNode() |
Modifier and Type | Method and Description |
---|---|
URI |
getRuleset() |
String |
getTargetMimeType() |
DynamicPipelineNode.UnhandledInputAction |
getUnhandledInputAction() |
String |
getWorkerClassName()
Return the node's associated
NodeWorker full qualified class's
name. |
void |
setRuleset(URI location)
Set the location of the ruleset to be used.
|
void |
setTargetMimeType(String targetMimeType)
Set the desired target MIME type that streams shall have after the
processing.
(Default: application/pdf ) |
void |
setUnhandledInputAction(DynamicPipelineNode.UnhandledInputAction unhandledInputAction)
Set the action to take when an input type is not covered by the ruleset.
|
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
public static final String ANY_TYPE
public static final URI DEFAULT_RULESET
public String getWorkerClassName()
Node
Return the node's associated
NodeWorker
full qualified class's
name. By default, the worker class name is
This behavior can be overridden in concrete subclasses.
getWorkerClassName
in class Node
public String getTargetMimeType()
public void setTargetMimeType(String targetMimeType)
Set the desired target MIME type that streams shall have after the
processing.
(Default: application/pdf
)
This field is used for a sanity check before processed streams are
forwarded to subsequent Node
s. If a Stream
does not have
this MIME type (see StreamDescriptor.getMimeType()
) a warning will
occur.
This sanity check can be switched off by setting this field to
ANY_TYPE
.
targetMimeType
- The MIME type the results of the processing shall
haveStreamDescriptor.getMimeType()
public DynamicPipelineNode.UnhandledInputAction getUnhandledInputAction()
DynamicPipelineNode.UnhandledInputAction
public void setUnhandledInputAction(DynamicPipelineNode.UnhandledInputAction unhandledInputAction)
unhandledInputAction
- public URI getRuleset()
public void setRuleset(URI location)
rulesetName
- Copyright © 2017 levigo holding gmbh. All rights reserved.