Hello,
Im customizing the BPMN.IO properties-panel.
When i select a servicetask to be executed external, the interface reacts and allows me to select a topic. This event is controlled from:
ImplementationType.js → Set
This results in firing:
External.js
Here, I’ve changed the topic-textbox to a selectbox to limit it to a specific set of options.:
var topicEntry = entryFactory.selectBox({
id: 'externalTopic',
label: 'Topic',
selectOptions: [
{name: 'Runscript', value: 'Runscript'},
{name: 'Update', value: 'Update'},
{name: 'Servicetask', value: 'Servicetask'}
],
modelProperty: 'externalTopic',
get: function (element, node) {
var bo = getBusinessObject(element);
return {externalTopic: bo.get('camunda:topic')};
},
set: function (element, values, node) {
var bo = getBusinessObject(element);
return cmdHelper.updateBusinessObject(element, bo, {
'camunda:topic': values.externalTopic
});
},
Now, when i select one of these options, i need the interface to react again to show another textbox below it.
I need to edit the set-function to something similar to what happens in selecting the “External”-option.
But, I’m having a hard time achieving this, and i would love some help!
cheers, R3vlyn