AnsweredAssumed Answered

Generic Java delegate to validate task variables.

Question asked by vadaliarchita on Aug 22, 2013
Latest reply on Sep 3, 2013 by jbarrez

   I am new to BPMN and Activiti. I have a generic java delegate extending TaskActivityBehavior. This would be used by multiple tasks. i.e. multiple process definitions would have this in class attribute. Each of these ServiceTasks using this class would have different set of variables mostly strings. What is the best way to specify the variables in the xml? Using <activito:field> or <property> or iospecification?.

Also, when i add variables to execution, the variables need not be present in the task definition. How to i verify that the variable i am setting is actually specified in task definition if i do not use expression?

Also is there a way to retrieve the variables from task definition for validation purposes?