Hello community!
I'm working on a customized version of the Activiti webapp explorer & modeler for the enterprise where i'm working in.
I have to say that i'm much more skilled in c# than java, but i wanted to take this challenge anyway (i'm the unique developer).
One of the requestes and one of the problems which i'm facing with right now is the following one:
I was asked to extend the properties of the modeler, in order to add some custom fields to the taks which will be generated from third datasources. Theese infos are the resources related to the activities like Human resources, hardware resources, etc…
I've solved it quite easily through the stencilset (new property, type choice, list of items), but the problems came up as i began to use the complexItems. It's a really simple but an annoying problem.
Defined a property composed by complex type with a nested complexitems and a nested list of items. Each item contain and id, title, value, and an empty refToView.
The problem is the following: from the Complex Type property window, the listbox containg the item's list, show only the value instead of the title. Considering that i'd like to generate the item's list starting from external datasources this is a pain in the ass!!!!
Can somebody give me a hint?
the following property inside the stencliset generate a listbox containg for example :
- "S-1-5-21-114626252-81015560-903097961-1088"
- "_CLW2"
- "_CLW3"
<blockcode>
{
"name" : "hwRes",
"properties" : [{
"id" : "hwRes",
"type" : "Complex",
"title" : "Risorse Hardware",
"value" : "",
"description" : "Risorse hardware assegnate all attivita",
"popular" : true,
"complexItems" : [{
"id" : "HwRes_item",
"name" : "Elemento di risorsa hardware",
"name_de" : "",
"type" : "Choice",
"value" : "",
"width" : 150,
"optional" : false,
"items" : [
{
"id": "c1",
"title": "BCR",
"value" : "S-1-5-21-114626252-81015560-903097961-1088",
"refToView": ""
}, {
"id" : "c2",
"title" : "clw2",
"value" : "_CLW2",
"refToView" : ""
}, {
"id" : "c3",
"title" : "clw3",
"value" : "_CLW3",
"refToView" : ""
}
]
}, {
"id" : "hwRes_priority",
"name" : "Priorita risorsa hardware",
"name_de" : "",
"type" : "Choice",
"description" : "Priorita della risorsa hardware associata all'elemento.",
"description_de" : "",
"value" : "",
"width" : 150,
"optional" : false,
"items" : [{
"id" : "c1",
"title" : "Primary",
"value" : "_primary_",
"refToView" : ""
}, {
"id" : "c2",
"title" : "Backup",
"value" : "_backup_",
"refToView" : ""
}, {
"id" : "c3",
"title" : "Other",
"value" : "_other_",
"refToView" : ""
}
]
}
]
}
]
},
</blockcode>
Best Regards,
Elvan