Incorrect or misleading documentation about WOH conditional execution

Description

The conditional execution documentation [1] seems to be wrong and/or misleading. Using parts of the described BFU cause:

2017-02-13 17:17:07,807 | ERROR | (BlueprintDeploymentListener:52) - Unable to parse deployed file /home/lars/dev/opencast/build/opencast-dist-allinone-2.4-SNAPSHOT/etc/workflows/fast-ng.xml
org.xml.sax.SAXParseException: The value of attribute "if" associated with an element type "operation" must not contain the '<' character.

[1] https://docs.opencast.org/latest/admin/configuration/workflow/#conditional-execution

Activity

Show:
Lars Kiesow
February 13, 2017, 4:32 PM

@Sven, iirc, you wrote that documentation. Are you sure it works like this? Do you have any working examples for comparing variables to values?

Sven Stauber
March 14, 2017, 11:38 PM

Oh, damn... Using "<" in XML violates the XML syntax
Too bad since all other operators (incluing ">") would not require character escaping.

I'll check whether condition evaluation works if the characters are escaped correctly.

Lars Kiesow
March 15, 2017, 9:31 AM

This gave me an idea.
It actually works if you encode the the operators properly.
I will adjust the documentation and probably (slightly) modify the workflow operation.

Fixed and reviewed

Assignee

Lars Kiesow

Reporter

Lars Kiesow

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major