We have a process which runs some rules against items in the working memory. We then want to use one of the objects in the working memory as the input parameter to a work item.
The only way I can see to do this is to use a script step to fetch the fact from the wm (via a query or whatever) and then set a global, then have the global map into the in paramater. This however seems very messy, scoping the variable
far larger than it needs to.
Is there a more appropriate solution which doesn’t pollute the global variable namespace – perhaps running some code in the work items on entry action to populate the parameter directly?
Thanks,
Thomas