Hello,<br><br>Is there a way to define new variables within ruleflow?. <br><br>If I try to set variable that hasn&#39;t been declared in the ruleflow header - the variables section. I get following error:<br>&quot;Could not find variable someVariableName<br>
Continuing without setting value&quot;<br><br>I am using following code:<br>context.setVariable(&quot;someVariableName&quot;, &quot;someValue&quot;);<br><br>I need this for couple of reasons:<br>&nbsp;- 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>
&nbsp;- in a subflow, the subflow calculates some value, I&#39;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&#39;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>