Thanks for the help.
I found function getCompletionsForForms(token, context, keywords) {...} in file hintjbpm.js. It do all what I want. But I change it little.
I think there is a bug. For both arrays use "i", what call inifinity cycle.
....
|
|
| for(var i=0;i<childshapes.length;i++){ |
|
| | var csobj = childshapes[i]; |
|
| | if(csobj.resourceId == shapeid) { |
|
| |
| var datainputs = csobj.properties.datainputset; |
|
| |
| var dataoutputs = csobj.properties.dataoutputset; |
|
| |
| var datainParts = datainputs.split(","); |
|
| |
| for(var i=0; i < datainParts.length; i++) { |
|
| |
|
| var nextPart = datainParts[i]; |
|
| |
|
| if(nextPart.indexOf(":") > 0) { |
|
| |
|
|
| var innerParts = nextPart.split(":"); |
|
| |
|
|
| maybeAdd('${'+innerParts[0]+'}'); |
|
| |
|
| } else { |
|
| |
|
|
| maybeAdd('${'+nextPart+'}'); |
|
| |
|
| } |
....