| [jwt-dev] AW: Custom Properties |
|
Hi Sachin, so basically what you will need for your aspects is to set the
multiple-property in the metamodel to true. This provides the possibility to
have different values for each action whereas multiple=false says that each
action would have the same e.g. “wait time”. Concerning the change listener, I’m not the expert here, but I
guess that it evaluates the toString-value of the field and maybe with a drop
down box it always stays the same? Maybe Chris or Marc can assist you here... Concerning the automatic display or hiding properties in the
custom properties dialog Marc is definitely the right person to ask – I don’t
have an idea about that; sorry! Best regards, Florian Von: Sachin N. Chavan
[mailto:Sachin.Chavan@xxxxxxxxxx] Hi
Florian, We
have a requirement where in we wanted to display a set of custom properties
based on the “Executed By Application” property value of the selected “Action”. The
value of the custom properties would be different for each node in the process. For
e.g. Lets say I have a “Wait” Action in my process. The value of “wait
time” custom property would be different for each Action (node) in the process. In
order to achieve the functionality similar to the one described above, we were
trying to extend the org.eclipse.jwt.we.changeListener and also to change the
aspects (custom properties of Action being implemented using aspects)
dynamically in the Listener implementation. As
described in the jwt-we-helpers-application example, the Change Notification
Listener worked for “feature” like name (which was a string and plain textbox)
by extending the org.eclipse.jwt.we.changeListener. But in case of the dropdown
(list box), the notification is not effected and the Listener implementation
doesn’t appear to work if the value of the dropdown is changed. Are
we missing something here? Also is there a way to invoke/display/hide certain
aspects (custom properties) dynamically based on the user selection (in this
case selection of a particular drop-down value from the list). Any
ideas/pointers/examples/comments to achieve such functionality are highly
appreciated. Thanks
& Regards, Sachin
|