I am using following code:
context.setVariable("someVariableName", "someValue");
I need this for couple of reasons:
- 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.
- 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.
I can't find any examples/test cases doing this.
Is there a way to define new variables within ruleflow?.
Thanking you in advance.
Best Regards,
Michal
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users