Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the 
discussion

"Re: jbpm-designer. How get variables of current task"

To view the discussion, visit: https://community.jboss.org/message/779894#779894

--------------------------------------------------------------
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+'}'); |
| 
 | 
 |      | 
 | 
 | } |
....
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/779894#779894]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to