cancel
Showing results for 
Search instead for 
Did you mean: 

form properties control ? writable = false

sunxiongwei
Champ in-the-making
Champ in-the-making
When  design one process,  I having a  UserTask   to set up a form property 'aaa', and set writable = false

My code:

      Map<String, Object> variables = new HashMap<String,Object>();
      variables.put("aaa", "ok or no");
                // UserTask  
      this.activitiRule.getTaskService().complete("30005", variables);

I want to the property of aaa don'tsave success, but in fact is saving success

why ?

the form properties not binding  task complete ?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
No, the writable applies here to the form rendering in Explorer, nit to the runtime engine.

sunxiongwei
Champ in-the-making
Champ in-the-making
Thank you!

I having try 

FormService formService = this.activitiRule.getFormService();
formService.saveFormData(task.getId(), variables);


This is what I want results


jbarrez
Star Contributor
Star Contributor
um … yes. But like I said it wont work, as writable is not applied to this API.