I want to activate a task button depending on a property in the input document:
In the filter-input in the workflow node properties Task Button tab I've put the following ID:
PanMuntligOverlaggning_enable
Then in Advanced Settings->Xml Extensions I have an extions doing this:
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="filters">
<filter id="PanMuntligOverlaggning_enable">
<rule grant="true">
<condition>#{currentDocument.getPropertyValue('pananmodan:yrkande') == '1'}</condition>
</rule>
</extension>
The input document has the property
"pananmodan:yrkande": "1" defined as String
EDIT:
I've realized that the "currentDocument" might be the workflow document and not the input document, still no success.
Is it possible to access workflow variables in the filter?
The button is not visible, any suggestions? I want the button to be visible only in the case of that said attribute beeing the string value 1
Thanks in advance