Hello,<br><br>Is there a way to define new variables within ruleflow?. <br><br>If I try to set variable that hasn't been declared in the ruleflow header - the variables section. I get following error:<br>"Could not find variable someVariableName<br>
Continuing without setting value"<br><br>I am using following code:<br>context.setVariable("someVariableName", "someValue");<br><br>I need this for couple of reasons:<br> - I have a custom *generic* WorkItem that has some parameters. I want to set them *dynamically* at runtime. Ideally, define new variables in onEntry and then map them with an in-mapping.<br>
- in a subflow, the subflow calculates some value, I'd like to store this value as variable and then use the out-mapping to propagate it to the parent ruleflow.<br><br>I can't find any examples/test cases doing this.<br>
<br>Is there a way to define new variables within ruleflow?. <br><br>Thanking you in advance.<br>Best Regards,<br>Michal<br>