AnsweredAssumed Answered

Usage of expression and variable for custom form type.

Question asked by anilmann on Nov 20, 2016
Latest reply on Nov 24, 2016 by anilmann

I was trying to build custom form type TABLE. Where we can pass an array list of an object. This array list will be converted into TABLE and provide an option for single/multiple selection to user. Once user selects and complete task form I want that data to be passed to ACTIVITI engine where a java service call will take care for further execution.

I was successfully able to build a table from data. However, during this course of implementation, I found that ACTIVITI cannot use expression as well as variable at once. Variable takes precedence over expression.

If I use a variable I overwrite the data of variable while transferring execution from FORM to ACTIVITI. And if i use expression, it gives me exception on UI side.

I was thinking that if I can provide an expression then the id of form field will be considered as variable. This behavior is seen in other inbuilt form types. For e.g. String Form Type if I use expression data then the id for that field can be used to get data of that field once the execution comes to ACTIVITI engine.

Please let me know if you need a sample code for above scenario.