Skip to content

Commit

Permalink
docu
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Apr 29, 2024
1 parent 6bbf896 commit b46d165
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/site/markdown/engine/adapttext.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@

The Imixs _WorkflowService_ provides the method '_adaptText(text, document)_' which can be called when a text fragment should be adapted to a custom format or custom values.

The Imixs _WorkflowService_ includes two custom text adapters:
```jav
String result=workflowService.adaptText(text, workitem);
```

The Imixs `WorkflowService` provides the following adapter classes:

* TextItemValueAdapter
* TextForEachAdapter
* TextPropertyAdapter

The adapter classes are called by the CDI observer pattern which allows to implement custom text adapters as well. See the section 'Custom Text Adapters' below for more details.

## Adapting Item Values
The _TextItemValueAdapter_ adapts a text fragment containing the XML tag _itemvalue_ with the item values of a given Document. This adapter is useful if a string constant need to be updated with values from the current workitem.
The `TextItemValueAdapter` adapts a text fragment containing the XML tag `<itemvalue>` with the item value of a item. This adapter is useful if a string constant need to be updated with values from the current workitem.

For example, a BPMN mail message text can be adapted with information from the current workitem.

Expand Down

0 comments on commit b46d165

Please sign in to comment.