Hi,I must to show a text area in read-only mode inside a workflow task.My model and web-client-config-custom.xml files are:model:<type name="wfTria:qualificaPM">
<parent>bpm:workflowTask</parent>
<properties>
<property name="wfTria:what">
<title>Descrizione</title>
<type>d:text</type>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
web-client-config-custom.xml<config evaluator="node-type" condition="wfTria:qualificaPM" replace="true" >
<property-sheet>
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
<show-property name="wfTria:what" component-generator="TextAreaGenerator"/>
</property-sheet>
</config>
I try to set the web-client-config-custom.xml like this:
<show-property name="wfTria:what" component-generator="TextAreaGenerator" read-only="true"/>
but when inside the WF I populate the value of textArea "wfTria:what" like this:<event type="task-create">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<variable name="wfTria_what" access="write"></variable>
<variable name="nomeProgetto" access="read"></variable>
<variable name="what" access="read"></variable>
<expression>
taskInstance.description = nomeProgetto;
wfTria_what = what;
</expression>
</script>
</action>
</event>
Inside the Alfresco wf task the property is not define correctly, but if I remove the read-only = "true" it is populated correctly but NOT in read-only mode.CAN YOU HELP ME PLEASE?THANK YOU