Package org.imixs.workflow.engine
Class TextForEachValueAdapter
java.lang.Object
org.imixs.workflow.engine.TextForEachValueAdapter
The TextForEachValueAdapter can be used to format text fragments with the
'for-each' tag. The adapter will iterate over the value list of a specified
item.
<for-each item="_partid">
Order-No: <itemvalue>_orderid</itemvalue> - Part ID: <itemvalue>_partid</itemvalue><br />
</for-each>
In this example, the for-each block will be executed for each single value of
the item '_partid'. Within the for-each block it is possible to access the
current value of the iteration as also any other values of the current
document. The result may look like in the following example:
Order-No: 111222 - Part ID: A123
Order-No: 111222 - Part ID: B456
- Author:
- rsoika
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
textEvents
-
-
Constructor Details
-
TextForEachValueAdapter
public TextForEachValueAdapter()
-
-
Method Details
-
onEvent
This method reacts on CDI events of the type TextEvent and parses a string for xml tag <for-each-value>. Those tags will be replaced with the corresponding system property value.The priority of the CDI event is set to (APPLICATION-10) to ensure that the for-each adapter is triggered before the TextItemValueAdapter
-