changing status of attributes belonging to different classeschanging status of attributes belonging to different classesRE: changing status of attributes belonging to different classesWilfrid Utzhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1325612014-06-02T06:41:00Z2014-06-02T06:13:24ZDear Emanuele,<br />attached you can find the two solutions for implementing this dynamic change attribute. Please find attached a sample implementation and example models on the 2 solutions. The libraries are also available in the SVN.<br /><br /><strong>1) EXPRESSION Attribute:</strong><br />This implementation uses an expression attribute to retrieve the value of another attribute and also adapt the graphical representation accordingly. Please notice that you can write expressions in the Development Toolkit environment as well as in the Notebook of the object in the Modelling Toolkit environment, depending on the planned behaviour.<br /><br />ABL: <a href="https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueExpression_ADOxx1.3UL1/BIN/ExpressionAttributeLibrary.abl">https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueExpression_ADOxx1.3UL1/BIN/ExpressionAttributeLibrary.abl</a><br />ADL: <a href="https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueExpression_ADOxx1.3UL1/DOC/ExpressionAttrModel.adl">https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueExpression_ADOxx1.3UL1/DOC/ExpressionAttrModel.adl</a><br /><br /><strong>2) EVENT Handler:</strong><br />You can also implement the behaviour as an event handler. For this purpose you can use the Event "AfterEditAttributeValue" and combine it with a "IF" condition.<br /><br />ABL: <a href="https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueEvent_ADOxx13UL1/BIN/ChangeAttributeValueEventLibrary.abl">https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueEvent_ADOxx13UL1/BIN/ChangeAttributeValueEventLibrary.abl</a><br />ADL: <a href="https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueEvent_ADOxx13UL1/DOC/ChangeAttributeValueEventModel.adl">https://www.adoxx.org/svn/all-repo/5_ADOxx_SupportLibraries_ADOxx13UL1/ChangeAttributeValueEvent_ADOxx13UL1/DOC/ChangeAttributeValueEventModel.adl</a>Wilfrid Utz2014-06-02T06:13:24Zchanging status of attributes belonging to different classesEmanuele Laurenzihttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1295142014-05-27T09:18:45Z2014-05-27T07:44:10Z<span style="font-family: sans-serif"><span style="font-size: 10px">Dear all,</span></span><br /><br /><span style="font-family: sans-serif"><span style="font-size: 10px">I'd like to pose you a question concerning the dynamicity of attributes.</span></span><br /><span style="font-family: sans-serif"><span style="font-size: 10px">How can I change the status of an attribute as consequence of the status acquired by another attribute which belongs to a different class?</span></span><br /><span style="font-family: sans-serif"><span style="font-size: 10px">e.g. </span></span><br /><span style="font-family: sans-serif"><span style="font-size: 10px">The knowledge representation is in OWL.</span></span><br /><span style="font-family: sans-serif"><span style="font-size: 10px">when the data property "Is_succeeded" of the class "KneeReplacementSurgery" gets the value "Yes", I'd like to change the data property "has_status" of the class "Gateway" from "Nagative" to "Positive".</span></span><br /><span style="font-family: sans-serif"><span style="font-size: 10px">As an alternative to change the data property value, the color of the symbol depicting the class "Gateway" could be changed.</span></span><br /><br /><span style="font-family: sans-serif"><span style="font-size: 10px">Thank you in advance,</span></span><br /><span style="font-family: sans-serif"><span style="font-size: 10px">Emanuele</span></span>Emanuele Laurenzi2014-05-27T07:44:10Z