JBoss Community

process variable type-safety

created by Renzo Tomaselli in jBPM - View the full discussion

Hi all, process variables are defined as name-type pairs.

From the Eclipse plugin I can see that types are defined by means of a Java class, however engine API deals with them as objects (Map<String, Object>).

The question is: who/when does check type consistency ? Is it an engine responsability or a task one ?

Should a task check received parameter type of all input parameters or is it already done by the engine ?

What happens when constrains meet a wrong type at runtime ?

Thanks.

Reply to this message by going to Community

Start a new discussion in jBPM at Community