cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Aspect properties not updating

georgera
Champ in-the-making
Champ in-the-making
When I go to update a nodes properties with a custom aspect I get these errors and the properties are left unchanged.

2016-03-31 11:04:55,467  WARN  [processor.node.NodeFormProcessor] [http-bio-8080-exec-10] Ignoring field 'prop_dac_ds_signatory_title' as a property definition can not be found
2016-03-31 11:04:55,468  WARN  [processor.node.NodeFormProcessor] [http-bio-8080-exec-10] Ignoring field 'prop_dac_ds_complete_time' as a property definition can not be found
2016-03-31 11:04:55,468  WARN  [processor.node.NodeFormProcessor] [http-bio-8080-exec-10] Ignoring field 'prop_dac_ds_signatory' as a property definition can not be found


My model looks like this


<aspect name="dac_ds:signable">
         <title>DAC Digital Signature</title>
         <properties>
            <property name="dac_ds:status">
               <type>d:text</type>
               <default>NEW</default>
               <constraints>
                  <constraint name="dac_ds:statusList" type="LIST">
                     <parameter name="allowedValues">
                        <list>                           
                           <value>NEW</value>
                           <value>CANCELED</value>
                           <value>SENT</value>      
                           <value>COMPLETED</value>
                           <value>TEMPLATE</value>
                        </list>
                     </parameter>
                  </constraint>
               </constraints>
            </property>
            <property name="dac_ds:start_time">
               <type>d:datetime</type>
            </property>
            <property name="dac_ds:complete_time">
               <type>d:datetime</type>
            </property>
            <property name="dac_ds:envelopeID">
               <type>d:text</type>
            </property>
            <property name="dac_ds:envelopeName">
               <type>d:text</type>
            </property>
            <property name="dac_ds:documentID">
               <type>d:text</type>
            </property>
            <property name="dac_ds:signature_flow">
               <type>d:text</type>
               <default>PARALLEL</default>
               <constraints>
                  <constraint name="dac_ds:signature_flowList" type="LIST">
                     <parameter name="allowedValues">
                        <list>
                           <value>SEQUENTIAL</value>
                           <value>PARALLEL</value>
                        </list>
                     </parameter>
                  </constraint>
               </constraints>
            </property>
            <!– *************************** –>
            <property name="dac_ds:signatory">
               <type>d:text</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:signatory_title">
               <type>d:text</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:sig_x">
               <type>d:int</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:sig_y">
               <type>d:int</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:sig_w">
               <type>d:int</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:sig_h">
               <type>d:int</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:sig_page">
               <type>d:int</type>
               <multiple>true</multiple>
            </property>
            <!–property name="dac_ds:sig_complete">
               <type>d:boolean</type>
               <multiple>true</multiple>
            </property–>
            <property name="dac_ds:sig_form_edit">
               <type>d:boolean</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:mandatory">
               <type>d:boolean</type>
               <multiple>true</multiple>
            </property>
            <property name="dac_ds:order">
               <type>d:int</type>
               <multiple>true</multiple>
            </property>
         </properties>
      </aspect>


My aspect evaluator in the share_config_custom.xml looks like this.


<config evaluator="aspect" condition="dac_ds:signable">
      <forms>
         <form>
            <field-visibility>
               <show id="dac_ds:signatory" />
               <show id="dac_ds:signatory_title" />
               <show id="dac_ds:status" />
               <show id="dac_ds:start_time" />
               <show id="dac_ds:complete_time" />
               <show id="dac_ds:signature_flow" />
            </field-visibility>
            <appearance>
               <set id="dac_ds_panel" appearance="panel" label-id="dac.digisig.panel" />
               <field id="dac_ds:signatory" label-id="dac.digisig.signatory" set="dac_ds_panel" />
               <field id="dac_ds:signatory_title" label-id="dac.digisig.title" set="dac_ds_panel"/>
               <field id="dac_ds:status" label-id="dac.digisig.status" set="dac_ds_panel" read-only="true" />
               <field id="dac_ds:start_time" label-id="dac.digisig.start_time" set="dac_ds_panel" read-only="true" />
               <field id="dac_ds:complete_time" label-id="dac.digisig.complete_time" set="dac_ds_panel" read-only="true" />
               <field id="dac_ds:signature_flow" label-id="dac.digisig.signature_flow" set="dac_ds_panel" />
            </appearance>
         </form>

         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="dac_ds:signatory" />
               <show id="dac_ds:signatory_title" />
               <show id="dac_ds:status" />
               <show id="dac_ds:start_time" />
               <show id="dac_ds:complete_time" />
                                        <show id="dac_ds:signature_flow" />
            </field-visibility>
            <appearance>
               <set id="dac_ds_panel" appearance="panel" label-id="dac.digisig.panel" />
               <field id="dac_ds:signatory" label-id="dac.digisig.signatory" set="dac_ds_panel"/>
               <field id="dac_ds:signatory_title" label-id="dac.digisig.title" set="dac_ds_panel" />
               <field id="dac_ds:status" label-id="dac.digisig.status" set="dac_ds_panel" read-only="true" />
               <field id="dac_ds:start_time" label-id="dac.digisig.start_time" set="dac_ds_panel" read-only="true" />
               <field id="dac_ds:complete_time" label-id="dac.digisig.complete_time" set="dac_ds_panel" read-only="true" />
               <field id="dac_ds:signature_flow" label-id="dac.digisig.signature_flow" set="dac_ds_panel" />
            </appearance>
         </form>
      </forms>

   </config>
3 REPLIES 3

redraccoon
Star Contributor
Star Contributor
did you also updated your service-context .xml in your repo ?

<java> <bean id="com.redraccoon.dictionaryBootstrap" parent="dictionaryModelBootstrap" >
        <property name="models">
        <list>
            <value>alfresco\module\redraccoon-repo\model\rrModel.xml</value>
        </list>       
          </property>   
       </bean>  </java>

georgera
Champ in-the-making
Champ in-the-making
Yes. Everything work on the repo side of things. I can, for example, set and retrieve the aspects properties from a webscript running JavaScript. And everything shows up and displays correctly in Share, I just can't make changes.

redraccoon
Star Contributor
Star Contributor
you should try this one

http://docs.alfresco.com/5.0/tasks/dev-extensions-content-models-tutorials-add-aspect.html

just to check if you are able to add custom aspect, then change step by step to see where your code is bugging, maybe the name can't have special characters like "_" not shure 😕