Activiti Designer - Dynamic Properties in Custom Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2011 04:42 AM
I'd like to bring up issue concerning dynamic properties in Custom Service Tasks. The idea is to fill property container from other source .
In general scenario:
- dropdown property items can be populated from database, some files, etc
- properites can changes theirs content in runtime
- adding/removing properties in runtime
I have some ideas how to add such features in code
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2011 01:47 PM
Okay, that sounds like a good addition. Would you like to contribute it?
Best regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2011 04:57 AM
What did you have in mind?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2011 07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2011 08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2011 11:25 AM
1) According to my topic http://forums.activiti.org/en/viewtopic.php?f=8&t=2718 which I posted few days ago, I think we should extend this interface by adding some methods or properties which will be responsible for dynamic part of Custom Service Task. This approach will reduce and simplified code, since only one extension is involved and also reduce extra mapping between CST and dynamic properties (all in one class) in case if we have two EP (Extensions Point), one for CST and one for dynamic data.
2) Another question is how we can identify CST and populating dynamic data. I mean, if we have two identical CST and we want to change data only in one of them how we can recognize, since where aren't (maybe I'm wrong) special identification mechanism
If I omitted something and this is important, don't hesitate to mention this


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2011 04:18 PM
I'm not at work for the next couple of days, so it may be a while before I get back to you.
I agree that this would best fit an approach to CSTs where the CSTs are already defined in an extension, not in a regular JAR (there's no real easy way to maken the instantiation work and get to Eclipse stuff).
To identify CSTs, I believe we now use fully qualified class names and I would suggest we maintain it that way. I think the values should be looked up by instantiating the class and asking it for the possible values, but storage in the model can remain the way it is. We already have a similar option for comboboxes with statically defined values, so it should be simple to have a "Repository" implementation for CSTs 1 and 2 (so two extensions to the same extension point, two implementation classes) and ask each one of them if they can provide values for a CST of type <FullyQualifiedName>. If so, we take the values and create a combobox. If not, we move on to the next extension.
With regards to your second question, do you mean having two fields on 1 CST that need different data? In that case I think we need Field IDs, which we don't have at the moment. However, if we allow you to specify that ID string in the @PropertyItems annotation instead of static values, I think we could make a nice match with the existing functionality and get down to the field specific level
Does this make sense for your use case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2011 04:20 AM
By identify CST I mean there are two equal CST on the canvas. For example:
First is called "Gate1" and second "Gate2" which only names are different, but body remains the same and same amount of properties inside.
So the question is: how I can recognized particular CST to populate data only to one them (i.e new combo items)?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2011 04:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2011 05:02 AM

Since creating CST is not a big coding problem
